Skip to main content
Glama

run_explain

Read-onlyIdempotent

Explain why one run passed or failed. Use it after runs_list when you need the failing cases and where the evidence came from. Returns the run's status, its failed cases with result metadata, an evidence-lineage summary, or not_found.

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": {
      "runId": "<runId>"
    },
    "name": "run_explain"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdYesRun ID returned by runs_list; must belong to the authenticated organization. Accepts a positive safe integer or its canonical decimal string (e.g. 3 or "3").

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds modest value by disclosing the payload shape and the not_found outcome. However, the output schema already carries the return structure, so the added behavioral context is thin.

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

Conciseness5/5

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

Two sentences with zero padding. The purpose verb is front-loaded, the usage cue follows, and the return contract is compressed into a single clause. Nothing here is redundant with the title or with the schema.

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 one-parameter, read-only tool with full annotations and an output schema, the description covers purpose, sequencing, and outcome shape. Minor gaps remain, such as error cases beyond not_found or any note about the evidence-lineage summary's depth, but nothing an agent needs in order to call it 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?

Only one parameter, and the schema description coverage is 100% — the schema itself explains that runId comes from runs_list, must belong to the authenticated organization, and accepts an integer or its canonical decimal string. The description adds no further parameter meaning. A 3 is the correct baseline when the schema does the heavy lifting.

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 — 'Explain why one run passed or failed' — and immediately enumerates what the answer contains (status, failed cases with result metadata, evidence-lineage summary, not_found). That is enough for an agent to tell it apart from runs_list and from lineage-oriented siblings like baseline_lineage.

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?

Explicitly sequences the tool: 'Use it after runs_list when you need the failing cases and where the evidence came from.' The condition that selects this tool is stated clearly. It stops short of naming when NOT to use it (e.g., for a passing run with no failure detail, or for pure lineage queries where baseline_lineage fits), so it lands at 4 rather than 5.

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