@tellagen/mcp-server 0.1.3 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/README.md +208 -12
  2. package/SKILL.md +376 -15
  3. package/contracts/runbooks/manifest.json +47 -0
  4. package/contracts/runbooks/v1/fixtures/global-runbook.json +7 -0
  5. package/contracts/runbooks/v1/runbook-definition.schema.json +25 -0
  6. package/contracts/runbooks/v2/compiled-plan.schema.json +40 -0
  7. package/contracts/runbooks/v2/fixtures/filesystem-pressure.json +181 -0
  8. package/contracts/runbooks/v2/fixtures/grafana-error-rate-plan.json +50 -0
  9. package/contracts/runbooks/v2/fixtures/grafana-error-rate.json +58 -0
  10. package/contracts/runbooks/v2/fixtures/timeline-event-blocks-rejected.json +90 -0
  11. package/contracts/runbooks/v2/fixtures/timeline-event-with-blocks.json +61 -0
  12. package/contracts/runbooks/v2/runbook-definition.schema.json +377 -0
  13. package/contracts/runbooks/v2/timeline-event-blocks.schema.json +480 -0
  14. package/contracts/tellagen-runbook-contracts.json +8 -0
  15. package/dist/auth.d.ts +2 -1
  16. package/dist/auth.js +2 -1
  17. package/dist/auth.js.map +1 -1
  18. package/dist/client.d.ts +20 -0
  19. package/dist/client.js +81 -12
  20. package/dist/client.js.map +1 -1
  21. package/dist/diagnosis-structure.d.ts +1416 -0
  22. package/dist/diagnosis-structure.js +656 -0
  23. package/dist/diagnosis-structure.js.map +1 -0
  24. package/dist/errors.d.ts +2 -1
  25. package/dist/errors.js +4 -1
  26. package/dist/errors.js.map +1 -1
  27. package/dist/figures.d.ts +2336 -0
  28. package/dist/figures.js +1288 -0
  29. package/dist/figures.js.map +1 -0
  30. package/dist/image-info.d.ts +14 -0
  31. package/dist/image-info.js +65 -0
  32. package/dist/image-info.js.map +1 -0
  33. package/dist/index.js +2 -6
  34. package/dist/index.js.map +1 -1
  35. package/dist/server.js +63 -6
  36. package/dist/server.js.map +1 -1
  37. package/dist/source-links.d.ts +101 -0
  38. package/dist/source-links.js +374 -0
  39. package/dist/source-links.js.map +1 -0
  40. package/dist/start.d.ts +11 -0
  41. package/dist/start.js +14 -0
  42. package/dist/start.js.map +1 -0
  43. package/dist/tools/attachments.d.ts +19 -0
  44. package/dist/tools/attachments.js +177 -0
  45. package/dist/tools/attachments.js.map +1 -0
  46. package/dist/tools/causes.d.ts +50 -0
  47. package/dist/tools/causes.js +97 -0
  48. package/dist/tools/causes.js.map +1 -0
  49. package/dist/tools/datasources.d.ts +3 -0
  50. package/dist/tools/datasources.js +325 -0
  51. package/dist/tools/datasources.js.map +1 -0
  52. package/dist/tools/diagnostics.d.ts +3 -0
  53. package/dist/tools/diagnostics.js +113 -0
  54. package/dist/tools/diagnostics.js.map +1 -0
  55. package/dist/tools/figures.d.ts +8 -0
  56. package/dist/tools/figures.js +209 -0
  57. package/dist/tools/figures.js.map +1 -0
  58. package/dist/tools/findings.js +84 -6
  59. package/dist/tools/findings.js.map +1 -1
  60. package/dist/tools/incidents.js +44 -4
  61. package/dist/tools/incidents.js.map +1 -1
  62. package/dist/tools/index.js +14 -0
  63. package/dist/tools/index.js.map +1 -1
  64. package/dist/tools/investigations.js +523 -21
  65. package/dist/tools/investigations.js.map +1 -1
  66. package/dist/tools/postmortem-runbooks.d.ts +786 -0
  67. package/dist/tools/postmortem-runbooks.js +330 -0
  68. package/dist/tools/postmortem-runbooks.js.map +1 -0
  69. package/dist/tools/source-links.d.ts +47 -0
  70. package/dist/tools/source-links.js +302 -0
  71. package/dist/tools/source-links.js.map +1 -0
  72. package/dist/tools/timeline.js +173 -0
  73. package/dist/tools/timeline.js.map +1 -1
  74. package/dist/version.d.ts +2 -0
  75. package/dist/version.js +12 -0
  76. package/dist/version.js.map +1 -0
  77. package/package.json +3 -2
  78. package/server.json +15 -1
@@ -0,0 +1,8 @@
1
+ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ export declare const FIGURE_GUIDE_URI = "resource://tellagen/figure-guide";
3
+ /** Added to the server instructions so every agent knows figures exist. */
4
+ export declare const FIGURE_INSTRUCTIONS = "Figures: Tellagen draws typed widgets (stats, compare, trend, table, checks, changes, range_overlap, histogram, run_history, diff) from data you send, in the Diagnosis tab, on the timeline and in the postmortem. Use tellagen_build_figure to turn the numbers you read from a tool result into a figure Tellagen accepts: it puts a time series on an even grid of at most 500 points, turns deploy, alert and rollback times into marks, turns cumulative histogram buckets into bucket counts, maps a GitHub Actions run list to a run history, and enforces every limit. Attach the result as a causal step's figure or as a block on a timeline event. A figure owns its numbers: never repeat them in prose, never invent one, and keep units in the unit field. Read resource://tellagen/figure-guide to choose the widget that fits the question and to learn how to plot data on it.";
5
+ export declare const FIGURE_GUIDE = "# Tellagen figures\n\nA figure is a small typed widget that Tellagen draws for you. You send the data. Tellagen draws it the same way in the Diagnosis tab, on the timeline and in the postmortem, and a responder can pin one from one place to another.\n\nUse tellagen_build_figure to make one. It reshapes the numbers you already read from a tool result and checks them against Tellagen's limits before you send anything. It has no data of its own.\n\n## Rules every figure follows\n\n1. A figure owns its numbers. The sentence next to it says what happened and why. It does not repeat the numbers.\n2. Never invent a number. Every value comes from a tool result you can cite. If you do not have the value, leave that row, figure or block out.\n3. Units go in the unit field, once. Do not put them inside a number, and do not repeat them in every label.\n4. One figure per causal step, under the step it proves. A step with no good figure carries none.\n5. Say where the data came from. A trend carries its query in source. For other figures, cite the tool result in the step's evidence refs.\n6. A tone is a meaning, not emphasis: good for healthy or recovered, warn for needs attention, bad for failing, neutral for a plain fact.\n7. The limits below are enforced. A figure over a limit is rejected with the field named. Shorten the data yourself. Do not expect it to be trimmed.\n\n## Pick the widget by the question\n\n| The question | Widget | Step figure | Timeline block | Limits |\n| --- | --- | --- | --- | --- |\n| What are the few numbers that matter? | stats | yes | yes | 1 to 4 items, label 48, value 32, caption 64 |\n| Did it get better, and is it inside the line? | compare | yes | yes | 1 to 8 rows, 3 details per row |\n| When did it start, and what happened around then? | trend | yes | yes | 2 to 500 points, 3 marks |\n| Which items rank highest? | table | no | yes | 1 to 6 columns, 1 to 12 rows, cell 64 |\n| Which checks passed, failed or did not run? | checks | yes | yes | 1 to 12 items, label 80, detail 160 |\n| What moved from one thing to another? | changes | no | yes | 1 to 8 rows, from and to 80, note 160 |\n| Where do two or more ranges meet? | range_overlap | yes | yes | 2 to 4 rows, label 80, unit 12 |\n| Did the slow tail move, when the average did not? | histogram | yes | yes | 3 to 61 edges (2 to 60 buckets), one count per bucket |\n| Which build broke, and which fixed it? | run_history | yes | yes | 2 to 30 runs, 4 marks, ref 80, sha 64, job 80, url 500 |\n| What exactly changed in the code? | diff | yes | yes | path 200, ref 64, 1 to 6 hunks, 12 lines in all, line 160 |\n\n## How to plot data on each widget\n\n### compare: before and after\n\nUse it for a value measured before and after a deploy, rollback, fix or config change. One row per host, route, query or job, biggest movers first.\n\n1. Pick two windows of the same length, one before the change and one after. Run the same query on both.\n2. Take one number per row from each window, for example the p95 over the window.\n3. Set unit once. Set better to lower or higher. Add a threshold for the SLO or alert line.\n\n { \"type\": \"compare\", \"title\": \"p95 latency by route\", \"unit\": \"ms\", \"better\": \"lower\",\n \"threshold\": { \"value\": 500, \"label\": \"SLO 500 ms\" },\n \"rows\": [ { \"label\": \"POST /checkout\", \"before\": 180, \"after\": 640 },\n { \"label\": \"GET /cart\", \"before\": 95, \"after\": 110 } ] }\n\nA distribution is a compare of percentiles: use p50, p95 and p99 as rows, with the SLO as the threshold.\n\n### trend: a series over time\n\nUse it when the evidence is how a value moved. Send the raw samples as points and the times of the events that explain the shape as events.\n\n1. Run a range query. Keep the time and the value of every sample.\n2. Send them as points with t and v. t is an ISO time or Unix time in seconds or milliseconds. v may be a numeric string, as Prometheus returns it. A null or NaN is skipped.\n3. Tellagen puts the points on an even grid of at most max_points (default 240, most 500) and sets start and step_seconds. Samples that share a step combine with reduce. Use max for error rate and latency so a spike survives, mean for a smooth rate.\n4. Add up to three events: a deploy, an alert, a rollback. They become marks at the right index. An event outside the range is left out and reported.\n5. Fill source with kind, datasource, query and step.\n\n { \"type\": \"trend\", \"title\": \"5xx share of requests\", \"unit\": \"%\", \"reduce\": \"max\",\n \"points\": [ { \"t\": \"2026-11-02T14:00:00Z\", \"v\": \"0.24\" }, { \"t\": \"2026-11-02T14:01:00Z\", \"v\": \"0.27\" } ],\n \"events\": [ { \"at\": \"2026-11-02T14:42:00Z\", \"label\": \"Deploy\" }, { \"at\": \"2026-11-02T15:28:00Z\", \"label\": \"Rollback\" } ],\n \"threshold\": { \"value\": 1, \"label\": \"SLO 1%\" },\n \"source\": { \"kind\": \"promql\", \"datasource\": \"prometheus\", \"query\": \"sum(rate(...))\", \"step\": \"1m\" } }\n\nIf the values are already on an even grid, send series with start and step_seconds, and marks by index. Empty steps are filled with a straight line and reported, so say so in the step when it matters.\n\n### stats: the few numbers that matter\n\nUp to four. Each has a short label, a value, a caption that says what it is measured on, and a tone.\n\n { \"type\": \"stats\", \"items\": [ { \"label\": \"Failed e2e tests\", \"value\": \"1 of 121\", \"caption\": \"master, Oct 30\", \"tone\": \"bad\" } ] }\n\n### table: a ranked list\n\nTop queries, failing routes, slowest endpoints. Give columns, then one cell per column in every row. Numbers are written as text. Keep each cell under 64 characters.\n\n### checks: pass or fail per check\n\nA recovery checklist or a CI job list. Put failures first. The block holds 12 items, so for a larger list send every failure and the checks that matter, and give the counts of the rest in the step.\n\n { \"type\": \"checks\", \"title\": \"Jobs on run 41289327533\",\n \"items\": [ { \"label\": \"Frontend Tests\", \"state\": \"fail\", \"detail\": \"1 failed of 13516\" }, { \"label\": \"E2E Tests\", \"state\": \"pass\" } ] }\n\n### changes: a value that moved\n\nA setting, a version, a limit. Each row has a label and a from, a to, or both, with an optional note.\n\n### range_overlap: ranges that meet\n\nUse it when the cause is two ranges meeting: layout offsets, a maintenance window against an error spike, memory or port ranges. Two to four rows, each with a label, a from and a to (from not above to), all in one unit.\n\n1. Read each range from a tool result: the config, the layout, the window times as numbers.\n2. Send min and max for the whole range when you want an overview strip, and every row must fall inside them. Leave out window: Tellagen zooms to the overlap.\n3. Never send the overlap itself. Tellagen computes it, and the builder tells you what it is in summary.\n\n { \"type\": \"range_overlap\", \"title\": \"Header and sticky bar\", \"unit\": \"px\",\n \"rows\": [ { \"label\": \"Header\", \"from\": 0, \"to\": 153 }, { \"label\": \"Sticky bar\", \"from\": 149, \"to\": 197 } ] }\n\n### histogram: a distribution before and after\n\nUse it when an average hides a slow tail. Send bucket counts for two equal windows. Tellagen computes p50, p95, p99 and the share over the threshold from the buckets, so never send percentiles.\n\n1. Run the bucket query on a window before the change and on one of the same length after it, for example sum by (le) (increase(http_request_duration_seconds_bucket{service=\"checkout\"}[30m])) at the end of each window.\n2. Send the result as buckets: one entry per le with the cumulative before and after counts, as Prometheus returns them, numeric strings and \"+Inf\" included.\n3. The builder turns them into edges (lower_edge, default 0, then every finite le) and one count per bucket. Observations above the last finite le have no bucket: the builder rejects them unless you set overflow to drop, and then you say so in the step.\n4. Add the SLO as threshold, in the unit of the le values.\n\n { \"type\": \"histogram\", \"title\": \"Checkout latency\", \"unit\": \"s\",\n \"buckets\": [ { \"le\": \"0.1\", \"before\": \"820\", \"after\": \"610\" }, { \"le\": \"0.5\", \"before\": \"990\", \"after\": \"800\" },\n { \"le\": \"1\", \"before\": \"1000\", \"after\": \"940\" }, { \"le\": \"+Inf\", \"before\": \"1000\", \"after\": \"940\" } ],\n \"threshold\": { \"value\": 0.5, \"label\": \"SLO 500 ms\" } }\n\nIf you already have per-bucket counts, send edges, before and after instead: before and after hold exactly one count per bucket (one fewer than edges), none negative.\n\n### run_history: CI builds, jobs, canaries or deploys\n\nUse it for a regression in CI or a bad deploy. Runs go oldest first, each with a ref, a result (success, failure, cancelled, pending), and the failing job when one failed.\n\n1. List the workflow runs of the branch around the failure: the GitHub Actions REST list, the GitHub MCP list of workflow runs, or gh run list --json number,databaseId,headSha,conclusion,status,createdAt,startedAt,event,url.\n2. Send them as github_runs, as they came. The builder maps each run: ref #run_number, the head sha, the start time, the event as trigger, the run page as url, and the conclusion as result (timed_out and startup_failure count as failure). A run whose conclusion is skipped, neutral, stale or action_required has no result: leave it out or send runs yourself. Runs are put oldest first by time.\n3. Add job to the failing runs: the name of the job that failed, from the run's jobs list.\n4. Add marks for the change that broke it (change_ref regression) and the one that fixed it (fix). Give the sha of the change and the builder places the mark before the first run built from it, or give between with the refs of the two neighbouring runs. change_ref may be a change_refs role: regression_source and first_bad become regression, fix stays fix, others become change.\n5. Set repo to owner/name so each run links to its page, and an optional span such as { \"from\": \"#4151\", \"to\": \"#4163\", \"label\": \"E2E Tests failed\" }.\n\n { \"type\": \"run_history\", \"title\": \"E2E on master\", \"repo\": \"acme/shop\", \"branch\": \"master\",\n \"github_runs\": [ { \"run_number\": 4150, \"head_sha\": \"9f2c1e0\", \"conclusion\": \"success\", \"created_at\": \"2026-10-30T08:00:00Z\", \"event\": \"push\" },\n { \"run_number\": 4151, \"head_sha\": \"4b7a2d1\", \"conclusion\": \"failure\", \"created_at\": \"2026-10-30T09:00:00Z\", \"event\": \"push\", \"job\": \"E2E Tests\" } ],\n \"marks\": [ { \"sha\": \"4b7a2d1\", \"change_ref\": \"regression\", \"title\": \"Move the header to a sticky layout\" } ] }\n\n### diff: the change that broke or fixed it\n\nUse it for the lines that matter in the change, not the whole diff.\n\n1. Read the commit or pull request file from GitHub. additions and deletions are the size of the whole change, from the commit or the pull request, never counted by you from a part of it.\n2. Send the file's patch as patch: the builder keeps its + and - lines, one hunk per @@ header. It must have at most 12 such lines in at most 6 hunks; otherwise copy the lines that show the change into hunks yourself, as they are, indentation kept.\n3. Set path, ref (the commit sha) and repo.\n\n { \"type\": \"diff\", \"path\": \"web/components/Header.tsx\", \"repo\": \"acme/shop\", \"ref\": \"4b7a2d1\", \"additions\": 14, \"deletions\": 3,\n \"hunks\": [ [ { \"op\": \"-\", \"text\": \" position: static;\" }, { \"op\": \"+\", \"text\": \" position: sticky;\" } ] ] }\n\n## Where the figure goes\n\n- A causal step: set it as figure on the step in result_summary.causal_paths. Every type except table and changes is allowed there, at most 16 KB. This needs the diagnosis structure, which the pickup advertises as diagnosis_structure_v1. A Tellagen that does not know a figure type yet drops the figure and says so in the completion warnings (figure_invalid).\n- A timeline event: put it in blocks on tellagen_post_timeline_event or tellagen_update_timeline_event. Any type is allowed, up to 12 per event. An update replaces the whole array, so send every block you want to keep, and [] clears them. Set slot to summary to draw the block above the note, or anchor to the exact heading text it sits under. Not both. Set postmortem to false to keep a block out of the postmortem.\n\nCall tellagen_build_figure with placement step_figure or timeline_block, and use the block it returns as it is.\n\n## Getting the data from other servers\n\n- Grafana or Prometheus: a range query returns time and value pairs. Send them as points. Run the same query on two equal windows for a compare.\n- Loki: a count over time by step is a trend. A count by label over two windows is a compare.\n- Prometheus histograms: the _bucket series summed by le over two equal windows are a histogram. Send them as buckets.\n- GitHub Actions: failed jobs of one run go in checks, failures first. The runs of a branch are a run_history: send the run list as github_runs.\n- GitHub commits and pull requests: the lines that broke or fixed it are a diff. Send the file's patch, and the change's additions and deletions.\n- Kubernetes: restarts or ready counts before and after are a compare, a list of pods is a table.\n\n## If Tellagen rejects a figure\n\nThe builder names the field. For a timeline block the API answers 400 invalid_block with field and details.errors. Fix exactly those fields and send once more. Do not drop a figure to get past an error unless the data in it is not real.\n";
6
+ export declare function registerFigureTools(server: McpServer): void;
7
+ /** Registered from createServer, next to the other resources. */
8
+ export declare function registerFigureResource(server: McpServer): void;
@@ -0,0 +1,209 @@
1
+ import { z } from "zod";
2
+ import { buildFigure, figureToolInputSchema } from "../figures.js";
3
+ export const FIGURE_GUIDE_URI = "resource://tellagen/figure-guide";
4
+ /** Added to the server instructions so every agent knows figures exist. */
5
+ export const FIGURE_INSTRUCTIONS = `Figures: Tellagen draws typed widgets (stats, compare, trend, table, checks, changes, range_overlap, histogram, run_history, diff) from data you send, in the Diagnosis tab, on the timeline and in the postmortem. Use tellagen_build_figure to turn the numbers you read from a tool result into a figure Tellagen accepts: it puts a time series on an even grid of at most 500 points, turns deploy, alert and rollback times into marks, turns cumulative histogram buckets into bucket counts, maps a GitHub Actions run list to a run history, and enforces every limit. Attach the result as a causal step's figure or as a block on a timeline event. A figure owns its numbers: never repeat them in prose, never invent one, and keep units in the unit field. Read ${FIGURE_GUIDE_URI} to choose the widget that fits the question and to learn how to plot data on it.`;
6
+ export const FIGURE_GUIDE = `# Tellagen figures
7
+
8
+ A figure is a small typed widget that Tellagen draws for you. You send the data. Tellagen draws it the same way in the Diagnosis tab, on the timeline and in the postmortem, and a responder can pin one from one place to another.
9
+
10
+ Use tellagen_build_figure to make one. It reshapes the numbers you already read from a tool result and checks them against Tellagen's limits before you send anything. It has no data of its own.
11
+
12
+ ## Rules every figure follows
13
+
14
+ 1. A figure owns its numbers. The sentence next to it says what happened and why. It does not repeat the numbers.
15
+ 2. Never invent a number. Every value comes from a tool result you can cite. If you do not have the value, leave that row, figure or block out.
16
+ 3. Units go in the unit field, once. Do not put them inside a number, and do not repeat them in every label.
17
+ 4. One figure per causal step, under the step it proves. A step with no good figure carries none.
18
+ 5. Say where the data came from. A trend carries its query in source. For other figures, cite the tool result in the step's evidence refs.
19
+ 6. A tone is a meaning, not emphasis: good for healthy or recovered, warn for needs attention, bad for failing, neutral for a plain fact.
20
+ 7. The limits below are enforced. A figure over a limit is rejected with the field named. Shorten the data yourself. Do not expect it to be trimmed.
21
+
22
+ ## Pick the widget by the question
23
+
24
+ | The question | Widget | Step figure | Timeline block | Limits |
25
+ | --- | --- | --- | --- | --- |
26
+ | What are the few numbers that matter? | stats | yes | yes | 1 to 4 items, label 48, value 32, caption 64 |
27
+ | Did it get better, and is it inside the line? | compare | yes | yes | 1 to 8 rows, 3 details per row |
28
+ | When did it start, and what happened around then? | trend | yes | yes | 2 to 500 points, 3 marks |
29
+ | Which items rank highest? | table | no | yes | 1 to 6 columns, 1 to 12 rows, cell 64 |
30
+ | Which checks passed, failed or did not run? | checks | yes | yes | 1 to 12 items, label 80, detail 160 |
31
+ | What moved from one thing to another? | changes | no | yes | 1 to 8 rows, from and to 80, note 160 |
32
+ | Where do two or more ranges meet? | range_overlap | yes | yes | 2 to 4 rows, label 80, unit 12 |
33
+ | Did the slow tail move, when the average did not? | histogram | yes | yes | 3 to 61 edges (2 to 60 buckets), one count per bucket |
34
+ | Which build broke, and which fixed it? | run_history | yes | yes | 2 to 30 runs, 4 marks, ref 80, sha 64, job 80, url 500 |
35
+ | What exactly changed in the code? | diff | yes | yes | path 200, ref 64, 1 to 6 hunks, 12 lines in all, line 160 |
36
+
37
+ ## How to plot data on each widget
38
+
39
+ ### compare: before and after
40
+
41
+ Use it for a value measured before and after a deploy, rollback, fix or config change. One row per host, route, query or job, biggest movers first.
42
+
43
+ 1. Pick two windows of the same length, one before the change and one after. Run the same query on both.
44
+ 2. Take one number per row from each window, for example the p95 over the window.
45
+ 3. Set unit once. Set better to lower or higher. Add a threshold for the SLO or alert line.
46
+
47
+ { "type": "compare", "title": "p95 latency by route", "unit": "ms", "better": "lower",
48
+ "threshold": { "value": 500, "label": "SLO 500 ms" },
49
+ "rows": [ { "label": "POST /checkout", "before": 180, "after": 640 },
50
+ { "label": "GET /cart", "before": 95, "after": 110 } ] }
51
+
52
+ A distribution is a compare of percentiles: use p50, p95 and p99 as rows, with the SLO as the threshold.
53
+
54
+ ### trend: a series over time
55
+
56
+ Use it when the evidence is how a value moved. Send the raw samples as points and the times of the events that explain the shape as events.
57
+
58
+ 1. Run a range query. Keep the time and the value of every sample.
59
+ 2. Send them as points with t and v. t is an ISO time or Unix time in seconds or milliseconds. v may be a numeric string, as Prometheus returns it. A null or NaN is skipped.
60
+ 3. Tellagen puts the points on an even grid of at most max_points (default 240, most 500) and sets start and step_seconds. Samples that share a step combine with reduce. Use max for error rate and latency so a spike survives, mean for a smooth rate.
61
+ 4. Add up to three events: a deploy, an alert, a rollback. They become marks at the right index. An event outside the range is left out and reported.
62
+ 5. Fill source with kind, datasource, query and step.
63
+
64
+ { "type": "trend", "title": "5xx share of requests", "unit": "%", "reduce": "max",
65
+ "points": [ { "t": "2026-11-02T14:00:00Z", "v": "0.24" }, { "t": "2026-11-02T14:01:00Z", "v": "0.27" } ],
66
+ "events": [ { "at": "2026-11-02T14:42:00Z", "label": "Deploy" }, { "at": "2026-11-02T15:28:00Z", "label": "Rollback" } ],
67
+ "threshold": { "value": 1, "label": "SLO 1%" },
68
+ "source": { "kind": "promql", "datasource": "prometheus", "query": "sum(rate(...))", "step": "1m" } }
69
+
70
+ If the values are already on an even grid, send series with start and step_seconds, and marks by index. Empty steps are filled with a straight line and reported, so say so in the step when it matters.
71
+
72
+ ### stats: the few numbers that matter
73
+
74
+ Up to four. Each has a short label, a value, a caption that says what it is measured on, and a tone.
75
+
76
+ { "type": "stats", "items": [ { "label": "Failed e2e tests", "value": "1 of 121", "caption": "master, Oct 30", "tone": "bad" } ] }
77
+
78
+ ### table: a ranked list
79
+
80
+ Top queries, failing routes, slowest endpoints. Give columns, then one cell per column in every row. Numbers are written as text. Keep each cell under 64 characters.
81
+
82
+ ### checks: pass or fail per check
83
+
84
+ A recovery checklist or a CI job list. Put failures first. The block holds 12 items, so for a larger list send every failure and the checks that matter, and give the counts of the rest in the step.
85
+
86
+ { "type": "checks", "title": "Jobs on run 41289327533",
87
+ "items": [ { "label": "Frontend Tests", "state": "fail", "detail": "1 failed of 13516" }, { "label": "E2E Tests", "state": "pass" } ] }
88
+
89
+ ### changes: a value that moved
90
+
91
+ A setting, a version, a limit. Each row has a label and a from, a to, or both, with an optional note.
92
+
93
+ ### range_overlap: ranges that meet
94
+
95
+ Use it when the cause is two ranges meeting: layout offsets, a maintenance window against an error spike, memory or port ranges. Two to four rows, each with a label, a from and a to (from not above to), all in one unit.
96
+
97
+ 1. Read each range from a tool result: the config, the layout, the window times as numbers.
98
+ 2. Send min and max for the whole range when you want an overview strip, and every row must fall inside them. Leave out window: Tellagen zooms to the overlap.
99
+ 3. Never send the overlap itself. Tellagen computes it, and the builder tells you what it is in summary.
100
+
101
+ { "type": "range_overlap", "title": "Header and sticky bar", "unit": "px",
102
+ "rows": [ { "label": "Header", "from": 0, "to": 153 }, { "label": "Sticky bar", "from": 149, "to": 197 } ] }
103
+
104
+ ### histogram: a distribution before and after
105
+
106
+ Use it when an average hides a slow tail. Send bucket counts for two equal windows. Tellagen computes p50, p95, p99 and the share over the threshold from the buckets, so never send percentiles.
107
+
108
+ 1. Run the bucket query on a window before the change and on one of the same length after it, for example sum by (le) (increase(http_request_duration_seconds_bucket{service="checkout"}[30m])) at the end of each window.
109
+ 2. Send the result as buckets: one entry per le with the cumulative before and after counts, as Prometheus returns them, numeric strings and "+Inf" included.
110
+ 3. The builder turns them into edges (lower_edge, default 0, then every finite le) and one count per bucket. Observations above the last finite le have no bucket: the builder rejects them unless you set overflow to drop, and then you say so in the step.
111
+ 4. Add the SLO as threshold, in the unit of the le values.
112
+
113
+ { "type": "histogram", "title": "Checkout latency", "unit": "s",
114
+ "buckets": [ { "le": "0.1", "before": "820", "after": "610" }, { "le": "0.5", "before": "990", "after": "800" },
115
+ { "le": "1", "before": "1000", "after": "940" }, { "le": "+Inf", "before": "1000", "after": "940" } ],
116
+ "threshold": { "value": 0.5, "label": "SLO 500 ms" } }
117
+
118
+ If you already have per-bucket counts, send edges, before and after instead: before and after hold exactly one count per bucket (one fewer than edges), none negative.
119
+
120
+ ### run_history: CI builds, jobs, canaries or deploys
121
+
122
+ Use it for a regression in CI or a bad deploy. Runs go oldest first, each with a ref, a result (success, failure, cancelled, pending), and the failing job when one failed.
123
+
124
+ 1. List the workflow runs of the branch around the failure: the GitHub Actions REST list, the GitHub MCP list of workflow runs, or gh run list --json number,databaseId,headSha,conclusion,status,createdAt,startedAt,event,url.
125
+ 2. Send them as github_runs, as they came. The builder maps each run: ref #run_number, the head sha, the start time, the event as trigger, the run page as url, and the conclusion as result (timed_out and startup_failure count as failure). A run whose conclusion is skipped, neutral, stale or action_required has no result: leave it out or send runs yourself. Runs are put oldest first by time.
126
+ 3. Add job to the failing runs: the name of the job that failed, from the run's jobs list.
127
+ 4. Add marks for the change that broke it (change_ref regression) and the one that fixed it (fix). Give the sha of the change and the builder places the mark before the first run built from it, or give between with the refs of the two neighbouring runs. change_ref may be a change_refs role: regression_source and first_bad become regression, fix stays fix, others become change.
128
+ 5. Set repo to owner/name so each run links to its page, and an optional span such as { "from": "#4151", "to": "#4163", "label": "E2E Tests failed" }.
129
+
130
+ { "type": "run_history", "title": "E2E on master", "repo": "acme/shop", "branch": "master",
131
+ "github_runs": [ { "run_number": 4150, "head_sha": "9f2c1e0", "conclusion": "success", "created_at": "2026-10-30T08:00:00Z", "event": "push" },
132
+ { "run_number": 4151, "head_sha": "4b7a2d1", "conclusion": "failure", "created_at": "2026-10-30T09:00:00Z", "event": "push", "job": "E2E Tests" } ],
133
+ "marks": [ { "sha": "4b7a2d1", "change_ref": "regression", "title": "Move the header to a sticky layout" } ] }
134
+
135
+ ### diff: the change that broke or fixed it
136
+
137
+ Use it for the lines that matter in the change, not the whole diff.
138
+
139
+ 1. Read the commit or pull request file from GitHub. additions and deletions are the size of the whole change, from the commit or the pull request, never counted by you from a part of it.
140
+ 2. Send the file's patch as patch: the builder keeps its + and - lines, one hunk per @@ header. It must have at most 12 such lines in at most 6 hunks; otherwise copy the lines that show the change into hunks yourself, as they are, indentation kept.
141
+ 3. Set path, ref (the commit sha) and repo.
142
+
143
+ { "type": "diff", "path": "web/components/Header.tsx", "repo": "acme/shop", "ref": "4b7a2d1", "additions": 14, "deletions": 3,
144
+ "hunks": [ [ { "op": "-", "text": " position: static;" }, { "op": "+", "text": " position: sticky;" } ] ] }
145
+
146
+ ## Where the figure goes
147
+
148
+ - A causal step: set it as figure on the step in result_summary.causal_paths. Every type except table and changes is allowed there, at most 16 KB. This needs the diagnosis structure, which the pickup advertises as diagnosis_structure_v1. A Tellagen that does not know a figure type yet drops the figure and says so in the completion warnings (figure_invalid).
149
+ - A timeline event: put it in blocks on tellagen_post_timeline_event or tellagen_update_timeline_event. Any type is allowed, up to 12 per event. An update replaces the whole array, so send every block you want to keep, and [] clears them. Set slot to summary to draw the block above the note, or anchor to the exact heading text it sits under. Not both. Set postmortem to false to keep a block out of the postmortem.
150
+
151
+ Call tellagen_build_figure with placement step_figure or timeline_block, and use the block it returns as it is.
152
+
153
+ ## Getting the data from other servers
154
+
155
+ - Grafana or Prometheus: a range query returns time and value pairs. Send them as points. Run the same query on two equal windows for a compare.
156
+ - Loki: a count over time by step is a trend. A count by label over two windows is a compare.
157
+ - Prometheus histograms: the _bucket series summed by le over two equal windows are a histogram. Send them as buckets.
158
+ - GitHub Actions: failed jobs of one run go in checks, failures first. The runs of a branch are a run_history: send the run list as github_runs.
159
+ - GitHub commits and pull requests: the lines that broke or fixed it are a diff. Send the file's patch, and the change's additions and deletions.
160
+ - Kubernetes: restarts or ready counts before and after are a compare, a list of pods is a table.
161
+
162
+ ## If Tellagen rejects a figure
163
+
164
+ The builder names the field. For a timeline block the API answers 400 invalid_block with field and details.errors. Fix exactly those fields and send once more. Do not drop a figure to get past an error unless the data in it is not real.
165
+ `;
166
+ export function registerFigureTools(server) {
167
+ server.registerTool("tellagen_build_figure", {
168
+ title: "Build a figure",
169
+ description: "Turn numbers you already read from a tool result into a figure (a typed widget) that Tellagen draws, and check it against Tellagen's limits before you send it. Widgets: stats (up to 4 headline numbers), compare (before and after per host, route or job, with an SLO line), trend (a series over time with up to 3 marks), table (a ranked list, up to 12 rows), checks (pass or fail per check, up to 12), changes (a value that moved from one thing to another), range_overlap (2 to 4 ranges that meet), histogram (bucket counts before and after), run_history (CI or deploy runs with the regression and fix marks), diff (up to 12 changed lines). For a time series send raw samples as points and the deploy, alert or rollback times as events: the tool puts them on an even grid of at most 500 points and works out the mark positions. For a histogram send Prometheus cumulative le buckets as buckets; for a run history send the GitHub Actions run list as github_runs; for a diff send the patch. It has no data of its own and never invents a value, so send only numbers from a tool result you can cite. placement step_figure is for a causal step (any type except table and changes, one per step). placement timeline_block is for a timeline event (any type). Read resource://tellagen/figure-guide to choose the widget and to see how to plot data on it.",
170
+ inputSchema: {
171
+ placement: z
172
+ .enum(["step_figure", "timeline_block"])
173
+ .describe("step_figure for result_summary.causal_paths[].steps[].figure. timeline_block for the blocks of a timeline event."),
174
+ figure: figureToolInputSchema,
175
+ slot: z.literal("summary").optional().describe("timeline_block only: draw the block above the note. Not together with anchor."),
176
+ anchor: z.string().max(80).optional().describe("timeline_block only: the exact heading text in the note that the block sits under. Not together with slot."),
177
+ postmortem: z.boolean().optional().describe("timeline_block only: false keeps the block out of the postmortem."),
178
+ },
179
+ }, async (input) => {
180
+ const result = buildFigure(input);
181
+ if (!result.ok) {
182
+ return {
183
+ content: [
184
+ {
185
+ type: "text",
186
+ text: JSON.stringify({
187
+ ok: false,
188
+ issues: result.issues,
189
+ next: "Fix exactly these fields and call again. Do not drop the figure unless the data it holds is not real.",
190
+ }),
191
+ },
192
+ ],
193
+ isError: true,
194
+ };
195
+ }
196
+ return { content: [{ type: "text", text: JSON.stringify(result) }] };
197
+ });
198
+ }
199
+ /** Registered from createServer, next to the other resources. */
200
+ export function registerFigureResource(server) {
201
+ server.registerResource("figure-guide", FIGURE_GUIDE_URI, {
202
+ title: "Tellagen Figure Guide",
203
+ description: "Which widget fits which question, how to plot data on each one, the limits Tellagen enforces, and where a figure goes in a diagnosis or a timeline event.",
204
+ mimeType: "text/markdown",
205
+ }, async (uri) => ({
206
+ contents: [{ uri: uri.href, mimeType: "text/markdown", text: FIGURE_GUIDE }],
207
+ }));
208
+ }
209
+ //# sourceMappingURL=figures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"figures.js","sourceRoot":"","sources":["../../src/tools/figures.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEnE,MAAM,CAAC,MAAM,gBAAgB,GAAG,kCAAkC,CAAC;AAEnE,2EAA2E;AAC3E,MAAM,CAAC,MAAM,mBAAmB,GAAG,kvBAAkvB,gBAAgB,mFAAmF,CAAC;AAEz3B,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D,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QACD,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;IAChF,CAAC,CACF,CAAC;AACJ,CAAC;AAED,iEAAiE;AACjE,MAAM,UAAU,sBAAsB,CAAC,MAAiB;IACtD,MAAM,CAAC,gBAAgB,CACrB,cAAc,EACd,gBAAgB,EAChB;QACE,KAAK,EAAE,uBAAuB;QAC9B,WAAW,EACT,2JAA2J;QAC7J,QAAQ,EAAE,eAAe;KAC1B,EACD,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;QACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;KAC7E,CAAC,CACH,CAAC;AACJ,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { formatError } from "../errors.js";
3
+ import { DIAGNOSIS_CHANGES_CAPABILITY, evidenceRefStructureShape, stripFindingChangeLinks, stripFindingEvidenceStructure, supportsDiagnosisChanges, supportsDiagnosisStructure, unsupportedNotice, } from "../diagnosis-structure.js";
3
4
  const screenshotSchema = z.object({
4
5
  url: z
5
6
  .string()
@@ -19,7 +20,8 @@ const screenshotSchema = z.object({
19
20
  .optional()
20
21
  .describe("Description of what the screenshot shows"),
21
22
  });
22
- const evidenceRefSchema = z.object({
23
+ const evidenceRefSchema = z
24
+ .object({
23
25
  source: z
24
26
  .string()
25
27
  .min(1)
@@ -32,18 +34,63 @@ const evidenceRefSchema = z.object({
32
34
  .string()
33
35
  .min(1)
34
36
  .describe("What the query returned — summarize the key data"),
37
+ result_sample: z
38
+ .string()
39
+ .optional()
40
+ .describe("Short redacted sample output or log lines that support the summary; keep it safe to show inline in Tellagen"),
35
41
  url: z
36
42
  .string()
37
43
  .optional()
38
44
  .describe("Deep link to the source (e.g., Grafana explore URL, GitHub commit)"),
45
+ tool_use_id: z
46
+ .string()
47
+ .optional()
48
+ .describe("Exact tool_use_id returned by the completed trace step"),
49
+ artifact_id: z
50
+ .string()
51
+ .optional()
52
+ .describe("Exact artifact_id returned by the completed trace step"),
53
+ artifact_digest: z
54
+ .string()
55
+ .optional()
56
+ .describe("Exact artifact_digest returned by the completed trace step"),
57
+ evidence_fact_key: z
58
+ .string()
59
+ .optional()
60
+ .describe("Exact evidence_fact_key returned by the completed trace step; copy it together with artifact_id, artifact_digest, or tool_use_id"),
61
+ captured_at: z
62
+ .string()
63
+ .datetime()
64
+ .optional()
65
+ .describe("ISO timestamp when the evidence was captured"),
66
+ result_bytes: z
67
+ .number()
68
+ .int()
69
+ .min(0)
70
+ .optional()
71
+ .describe("Size in bytes of the underlying result"),
72
+ truncated: z
73
+ .boolean()
74
+ .optional()
75
+ .describe("Whether the evidence result was truncated"),
76
+ verified: z
77
+ .boolean()
78
+ .optional()
79
+ .describe("Whether the evidence was independently verified"),
80
+ ...evidenceRefStructureShape,
39
81
  screenshots: z
40
82
  .array(screenshotSchema)
41
83
  .optional()
42
84
  .describe("Screenshots related to this evidence (e.g., Grafana dashboard panel showing the spike)"),
85
+ })
86
+ .refine((ref) => !ref.evidence_fact_key ||
87
+ [ref.artifact_id, ref.artifact_digest, ref.tool_use_id].some((value) => typeof value === "string" && value.trim().length > 0), {
88
+ message: "evidence_fact_key must be accompanied by artifact_id, artifact_digest, or tool_use_id",
89
+ path: ["evidence_fact_key"],
43
90
  });
44
91
  export function registerFindingTools(server, client) {
45
92
  server.registerTool("tellagen_post_finding", {
46
- description: "Post a structured finding to an active investigation run on a Tellagen incident. Post findings incrementally as you discover them — do not batch.",
93
+ description: "Post a structured finding to an active investigation run on a Tellagen incident. Post findings incrementally as you discover them — do not batch. The response is {finding:{id,...}}: keep the numeric id, because causal_paths steps, ruled_out, coverage and unknowns cite findings by finding_ids when you complete the run.",
47
94
  inputSchema: {
48
95
  incident_id: z.number().int().positive().describe("Incident ID"),
49
96
  investigation_run_id: z
@@ -58,8 +105,13 @@ export function registerFindingTools(server, client) {
58
105
  "evidence",
59
106
  "recommendation",
60
107
  "negative",
108
+ "gap",
61
109
  ])
62
- .describe("Type of finding: observation (notable data), correlation (two related things), hypothesis (proposed cause), evidence (proof), recommendation (suggested action), negative (ruled out)"),
110
+ .describe("Type of finding: observation (notable data), correlation (two related things), hypothesis (proposed cause), evidence (proof), recommendation (suggested action), negative (ruled out), gap (required evidence or source was unavailable)"),
111
+ role: z
112
+ .enum(["confirms", "supports", "contradicts", "gap"])
113
+ .optional()
114
+ .describe("How this finding relates to the current diagnosis. Use gap when a required source, check, or evidence contract could not be satisfied."),
63
115
  claim: z
64
116
  .string()
65
117
  .min(1)
@@ -80,13 +132,13 @@ export function registerFindingTools(server, client) {
80
132
  evidence_refs: z
81
133
  .array(evidenceRefSchema)
82
134
  .optional()
83
- .describe("References to evidence sources consulted. Include deep links in url where possible."),
135
+ .describe("References to evidence sources consulted. Reuse artifact_id, artifact_digest, or tool_use_id returned by the completed trace step, together with evidence_fact_key when returned, so Tellagen can derive finding-to-runbook lineage. Do not submit evidence_fact_key alone. Add links (from tellagen_build_source_link) for Grafana and GitHub sources and a command for kubectl and other local sources, so every ref opens its source."),
84
136
  screenshots: z
85
137
  .array(screenshotSchema)
86
138
  .optional()
87
139
  .describe("Standalone screenshots for this finding (e.g., Grafana dashboard panels, error traces). Use evidence_refs[].screenshots for source-specific screenshots."),
88
140
  },
89
- }, async ({ incident_id, investigation_run_id, finding_type, claim, evidence_summary, confidence, confidence_reason, evidence_refs, screenshots, }) => {
141
+ }, async ({ incident_id, investigation_run_id, finding_type, role, claim, evidence_summary, confidence, confidence_reason, evidence_refs, screenshots, }) => {
90
142
  try {
91
143
  const reqBody = {
92
144
  investigation_run_id,
@@ -97,11 +149,37 @@ export function registerFindingTools(server, client) {
97
149
  confidence_reason,
98
150
  evidence_refs: evidence_refs ?? [],
99
151
  };
152
+ if (role !== undefined)
153
+ reqBody.role = role;
100
154
  if (screenshots !== undefined)
101
155
  reqBody.screenshots = screenshots;
156
+ // links, command and datasource go only to a backend that advertises
157
+ // diagnosis_structure_v1; an older one would drop them silently.
158
+ let notice;
159
+ const stripped = stripFindingEvidenceStructure(reqBody.evidence_refs);
160
+ if (stripped.removed.length > 0 &&
161
+ !(await supportsDiagnosisStructure(client, investigation_run_id))) {
162
+ reqBody.evidence_refs = stripped.refs;
163
+ notice = unsupportedNotice(stripped.removed);
164
+ }
165
+ // ci_run, deployment and release links need diagnosis_changes_v1.
166
+ const changeLinks = stripFindingChangeLinks(reqBody.evidence_refs);
167
+ if (changeLinks.removed.length > 0 &&
168
+ !(await supportsDiagnosisChanges(client, investigation_run_id))) {
169
+ reqBody.evidence_refs = changeLinks.refs;
170
+ const changesNotice = unsupportedNotice(changeLinks.removed, DIAGNOSIS_CHANGES_CAPABILITY);
171
+ notice = notice ? `${notice} ${changesNotice}` : changesNotice;
172
+ }
102
173
  const data = await client.post(`/api/v1/incidents/${incident_id}/findings`, reqBody);
103
174
  return {
104
- content: [{ type: "text", text: JSON.stringify(data) }],
175
+ content: [
176
+ {
177
+ type: "text",
178
+ text: JSON.stringify(notice && data && typeof data === "object" && !Array.isArray(data)
179
+ ? { ...data, mcp_notice: notice }
180
+ : data),
181
+ },
182
+ ],
105
183
  };
106
184
  }
107
185
  catch (err) {
@@ -1 +1 @@
1
- {"version":3,"file":"findings.js","sourceRoot":"","sources":["../../src/tools/findings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,GAAG,EAAE,CAAC;SACH,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,CACP,4EAA4E,CAC7E;I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AAK,SAAS;gBAAE,OAAO,CAAC,UAAU,GAAG,UAAU,CAAC;YAC9D,IAAI,QAAQ,KAAK,SAAS;gBAAE,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;YACxD,IAAI,UAAU,KAAK,SAAS;gBAAE,OAAO,CAAC,UAAU,GAAG,UAAU,CAAC;YAC9D,IAAI,IAAI,KAAK,SAAS;gBAAE,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;YAC5C,IAAI,cAAc,KAAK,SAAS;gBAC9B,OAAO,CAAC,cAAc,GAAG,cAAc,CAAC;YAC1C,IAAI,WAAW,KAAK,SAAS;gBAAE,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC;YACjE,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,IAAI,CAC5B,oBAAoB,UAAU,UAAU,EACxC,OAAO,CACR,CAAC;YACF,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;aACjE,CAAC;QACJ,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC5D,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -71,8 +71,15 @@ export function registerIncidentTools(server, client) {
71
71
  }
72
72
  });
73
73
  server.registerTool("tellagen_create_incident", {
74
- description: "Create a new incident in Tellagen. Returns the created incident with its ID and details.",
74
+ description: "Create a new incident in Tellagen. Use title for the editable display title, short_title only for the ID/Slack slug, and impact_summary for the separate impact narrative. Returns the created incident with its ID and details.",
75
75
  inputSchema: {
76
+ title: z
77
+ .string()
78
+ .trim()
79
+ .min(1)
80
+ .max(160)
81
+ .optional()
82
+ .describe("Canonical editable incident display title. Recommended for every new incident"),
76
83
  service: z
77
84
  .string()
78
85
  .max(128)
@@ -90,7 +97,7 @@ export function registerIncidentTools(server, client) {
90
97
  .string()
91
98
  .max(12)
92
99
  .optional()
93
- .describe("Short incident slug used in the Tellagen human ID"),
100
+ .describe("Short slug used in the Tellagen human ID and Slack channel name; not the display title"),
94
101
  gist: z
95
102
  .string()
96
103
  .max(12)
@@ -101,12 +108,28 @@ export function registerIncidentTools(server, client) {
101
108
  .url()
102
109
  .optional()
103
110
  .describe("Runbook or postmortem URL"),
111
+ impact_summary: z
112
+ .string()
113
+ .optional()
114
+ .describe("Customer or operational impact narrative, distinct from the incident title"),
104
115
  team_id: z
105
116
  .number()
106
117
  .int()
107
118
  .positive()
108
119
  .optional()
109
120
  .describe("Owning team ID"),
121
+ issue_type: z
122
+ .string()
123
+ .optional()
124
+ .describe("Lifecycle classification, for example incident, ticket, or postmortem"),
125
+ status: z
126
+ .string()
127
+ .optional()
128
+ .describe("Initial configured workflow status"),
129
+ severity_mode: z
130
+ .enum(["auto", "manual"])
131
+ .optional()
132
+ .describe("Whether severity is automatic or manually selected"),
110
133
  create_slack_channel: z
111
134
  .boolean()
112
135
  .optional()
@@ -123,7 +146,10 @@ export function registerIncidentTools(server, client) {
123
146
  if (value === undefined || key === "gist") {
124
147
  continue;
125
148
  }
126
- if (key === "short_title") {
149
+ if (key === "title" && typeof value === "string") {
150
+ body.title = value.trim();
151
+ }
152
+ else if (key === "short_title") {
127
153
  body.short_title = value;
128
154
  }
129
155
  else {
@@ -146,9 +172,16 @@ export function registerIncidentTools(server, client) {
146
172
  }
147
173
  });
148
174
  server.registerTool("tellagen_update_incident", {
149
- description: "Update incident fields that are useful during investigation: status, severity, impact summary, links, and key timestamps.",
175
+ description: "Update incident fields that are useful during investigation: display title, status, severity, impact summary, links, and key timestamps.",
150
176
  inputSchema: {
151
177
  incident_id: z.number().int().positive().describe("Incident ID"),
178
+ title: z
179
+ .string()
180
+ .trim()
181
+ .min(1)
182
+ .max(160)
183
+ .optional()
184
+ .describe("Editable incident display title"),
152
185
  service: z.string().optional(),
153
186
  regions: z.array(z.string()).optional(),
154
187
  severity: z.string().optional(),
@@ -157,6 +190,13 @@ export function registerIncidentTools(server, client) {
157
190
  doc_url: z.string().url().optional(),
158
191
  status: z.string().optional(),
159
192
  issue_type: z.string().optional(),
193
+ team_id: z
194
+ .number()
195
+ .int()
196
+ .positive()
197
+ .nullable()
198
+ .optional()
199
+ .describe("Owning team ID, or null to remove the assignment"),
160
200
  severity_mode: z.string().optional(),
161
201
  impact_summary: z.string().optional(),
162
202
  impact_started_at: z
@@ -1 +1 @@
1
- {"version":3,"file":"incidents.js","sourceRoot":"","sources":["../../src/tools/incidents.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,UAAU,qBAAqB,CACnC,MAAiB,EACjB,MAAsB;IAEtB,MAAM,CAAC,YAAY,CACjB,uBAAuB,EACvB;QACE,WAAW,EACT,6GAA6G;QAC/G,WAAW,EAAE;YACX,WAAW,EAAE,CAAC;iBACX,MAAM,EAAE;iBACR,GAAG,EAAE;iBACL,QAAQ,EAAE;iBACV,QAAQ,CAAC,aAAa,CAAC;SAC3B;KACF,EACD,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE;QACxB,IAAI,CAAC;YACH,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAC3B,qBAAqB,WAAW,EAAE,CACnC,CAAC;YACF,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;aACjE,CAAC;QACJ,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,WAAW,CAAC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,CAAC,MAAM,CAAC,EAAE,CAAC;gBAClD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;oBACxB,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;gBACpB,CAAC;YACH,CAAC;YACD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,qBAAqB,WAAW,EAAE,EAAE,IAAI,CAAC,CAAC;YAC1E,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;aACjE,CAAC;QACJ,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC5D,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -1,14 +1,28 @@
1
1
  import { registerIncidentTools } from "./incidents.js";
2
2
  import { registerInvestigationTools } from "./investigations.js";
3
+ import { registerCauseTools } from "./causes.js";
3
4
  import { registerFindingTools } from "./findings.js";
4
5
  import { registerTimelineTools } from "./timeline.js";
5
6
  import { registerContextTools } from "./context.js";
7
+ import { registerDatasourceTools } from "./datasources.js";
8
+ import { registerDiagnosticTools } from "./diagnostics.js";
9
+ import { registerPostmortemRunbookTools } from "./postmortem-runbooks.js";
10
+ import { registerFigureTools } from "./figures.js";
11
+ import { registerSourceLinkTools } from "./source-links.js";
12
+ import { registerAttachmentTools } from "./attachments.js";
6
13
  /** Register all Tellagen MCP tools on the server. */
7
14
  export function registerAllTools(server, client) {
8
15
  registerIncidentTools(server, client);
9
16
  registerInvestigationTools(server, client);
10
17
  registerFindingTools(server, client);
18
+ registerCauseTools(server, client);
11
19
  registerTimelineTools(server, client);
12
20
  registerContextTools(server, client);
21
+ registerDatasourceTools(server, client);
22
+ registerDiagnosticTools(server, client);
23
+ registerPostmortemRunbookTools(server, client);
24
+ registerFigureTools(server);
25
+ registerSourceLinkTools(server, client);
26
+ registerAttachmentTools(server, client);
13
27
  }
14
28
  //# sourceMappingURL=index.js.map