Skip to main content
Glama

Get triage diagnostics

get_triage_diagnostics
Read-only

Returns the generated fix diff (as file paths and line counts, not full content) and before/after test-run output for one triage run, identified by the triage run id from get_triage_runs (NOT a build id and NOT an issue number). stdout/stderr are tail-truncated because test failure summaries appear at the end of output, not the install noise at the start. Full file contents are available separately via the get_build_files tool using the run's buildId. Also includes a per-LLM-call trace (stage/model/status/latency) from Analytics Engine when available, covering attempts that failed before ever reaching the before/after test comparison above.

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": {
      "triageRunId": "<triageRunId>"
    },
    "name": "get_triage_diagnostics"
  }
}

Input Schema

NameRequiredDescriptionDefault
triageRunIdYesThe triage run id, as returned by get_triage_runs (the first token of each line), not the build id or issue number.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond readOnlyHint=true, it discloses that the diff is summarized as paths plus line counts, that stdout/stderr are tail-truncated (with the reason: failure summaries appear at the end), and that the per-LLM-call trace comes from Analytics Engine only when available and covers attempts that never reached the test comparison. This is real behavioral context an agent cannot get from annotations.

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

Conciseness4/5

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

Front-loaded with what is returned, then caveats and routing. It is one dense paragraph with parenthetical qualifiers that mostly earn their place, though the nested NOT/NOT and 'when available' clauses make it heavier than necessary.

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

Completeness5/5

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

There is no output schema, so the description carries the return-value burden and does so: diff shape, truncation behavior, test output, and the conditional trace, plus where to get full contents. Nothing needed to call this correctly is missing.

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

Parameters3/5

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

Schema coverage is 100% and the single parameter's schema text already says it is the triage run id from get_triage_runs, not a build id or issue number. The description's id guidance largely restates that, adding only the 'first token of each line' framing, so it meets the baseline rather than extending it.

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?

States a specific verb and resource: returns the generated fix diff (paths and line counts, not full content) plus before/after test-run output for one triage run. It also distinguishes itself from get_triage_runs (source of the id) and get_build_files (full file contents), so an agent can pick it correctly without opening a schema.

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

Usage Guidelines5/5

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

Explicitly scopes the identifier: the triage run id from get_triage_runs, 'NOT a build id and NOT an issue number', and routes the agent to get_build_files for full file contents. Both the correct input source and the alternative for a related need are named.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources