Skip to main content
Glama
Tellagen MCP Server

Tellagen MCP Server

Official
by Tellagen

Build a figure

tellagen_build_figure
Read-onlyIdempotent

Turn cited numbers from tool results into validated Tellagen figures and widgets, including stats, compare, trend, table, checks, histograms, and diffs, before sending.

Instructions

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 (headline numbers: aim for 4, up to 8 with figure_extras_v1, and an optional title), 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 (the changed lines of a code change), log_lines (the log lines of a Loki result that prove a claim, or the proof that there are none). 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 of one file: a change of 12 or fewer changed lines is sent whole with each removed line next to the line that replaced it, a longer one needs select_hunks (at most 3 hunks). Pass run_id so unchanged lines and line numbers are added only when this Tellagen lists diff_lines_v1, a stats title, more than 4 stats and runs_not_shown only when it lists figure_extras_v1, and the limit of a compare row only when it lists figure_limits_v1 (a row with a limit needs no before; never put a limit in before). 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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "placement": "<placement>",
      "figure": "<figure>"
    },
    "name": "tellagen_build_figure"
  }
}

Input Schema

NameRequiredDescriptionDefault
slotNotimeline_block only: draw the block above the note. Not together with anchor.
anchorNotimeline_block only: the exact heading text in the note that the block sits under. Not together with slot.
figureYes
run_idNoThe investigation run you are working on. For a diff, a stats, a run_history or a log_lines figure, Tellagen is asked which features it lists in server_capabilities (diff_lines_v1: unchanged lines and line numbers; figure_extras_v1: a stats title, more than 4 stats, runs_not_shown; figure_limits_v1: a limit on a compare row; log_lines_v1: log_lines) and, for log_lines, what the run window is. Without it the latest pickup of this process decides.
placementYesstep_figure for result_summary.causal_paths[].steps[].figure. timeline_block for the blocks of a timeline event.
postmortemNotimeline_block only: false keeps the block out of the postmortem.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.0

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/idempotent/non-destructive, and the description is consistent with them while adding behavior the annotations cannot convey: no data of its own and never inventing values, the even-grid resampling to at most 500 points, capability gating via run_id (diff_lines_v1, figure_extras_v1, figure_limits_v1), and per-widget ceilings (4 stats, 8 with extras, 12 rows/checks, 3 marks, 3 hunks). These are exactly the failure modes an agent would otherwise trip on.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded and every widget name earns its clause, but the body is a dense multi-clause run-on with sentences stretching past 80 words, mixing layout rules, data-shape rules, capability gating, and limits in one stream. A reader must re-parse the run_id sentence several times to extract the three feature flags. Structure is functional but not scannable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a polymorphic 6-parameter tool with no output schema, the description covers placement, data shape, limits, capability gating, and the no-fabrication rule, and it delegates the five loosely-typed widget bodies to resource://tellagen/figure-guide. That delegation is a reasonable boundary, though an agent working offline on range_overlap, histogram, run_history, diff or log_lines gets only the one-line hints here.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 83%, so the schema already carries most field meaning; the description still compensates where the schema is thin or absent, notably the select_hunks escape hatch for diffs longer than 12 changed lines (not documented in the schema surface), the points-versus-series-versus-events distinction for trend, Prometheus le buckets for histogram, and github_runs for run_history. Some phrasing restates schema text verbatim ('never put a limit in before'), which keeps this from a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence states a specific verb and resource: turn numbers already read from a tool result into a typed widget Tellagen draws, and validate it against limits before sending. It goes further by enumerating every widget type with a one-clause definition each (stats, compare, trend, table, checks, changes, range_overlap, histogram, run_history, diff, log_lines), so an agent can match its data shape to a widget without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete placement routing rules (step_figure for a causal step, any type except table and changes, one per step; timeline_block for a timeline event, any type) and points to resource://tellagen/figure-guide for widget selection. It also states a clear constraint on inputs ('send only numbers from a tool result you can cite'). What it lacks is an explicit statement of when not to build a figure at all, or a named sibling alternative for that case.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.