Skip to main content
Glama

Compare two runs

compare_runs
Read-only

Compare a candidate run against a baseline to identify regressions and fixes, and quantify pass-rate and p95 latency changes for CI evaluation gating.

Instructions

Diff a candidate run against a baseline: regressions, fixes, pass-rate and p95 latency change.

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": {
      "baselineRunId": "<baselineRunId>",
      "candidateRunId": "<candidateRunId>"
    },
    "name": "compare_runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
baselineRunIdYes
candidateRunIdYes

Output Schema

NameRequiredDescriptionDefault
addedYes
fixesYes
removedYes
baselineYes
candidateYes
regressionsYes
passRateDeltaYes
latencyP95DeltaMsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe, non-mutating operation, so the bar is lower. The description adds what the comparison computes (regressions, fixes, pass-rate and p95 latency deltas), which is useful, but says nothing about cost, latency, failure modes, or how incomparable runs are handled. With an output schema present, the return-shape gap is acceptable.

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?

A single tight sentence with the resource and the payoff front-loaded; every clause carries information and nothing is padded.

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 two-parameter read-only comparison with an output schema documenting the return, the description covers purpose, directionality, and the metrics compared. The main remaining gap is the unstated comparability prerequisite between baseline and candidate.

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 description coverage is 0%, so the description must carry the burden, and it does add real meaning: it establishes which ID is the reference (baseline) and which is under evaluation (candidate), a distinction the bare schema cannot convey. It does not cover ID format, where IDs come from, or the requirement that both runs be comparable.

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

Purpose4/5

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

States a specific verb (diff) and resource (two runs), and enumerates the deltas produced: regressions, fixes, pass-rate and p95 latency change. That is clearly distinct from list_runs/get_run, though it does not name a sibling or spell out the differentiation explicitly.

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

Usage Guidelines3/5

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

The words 'candidate' and 'baseline' imply the comparison workflow and the direction of the diff, which is genuine usage guidance. However, there is no explicit when-to-use statement, no mention of when not to use it, and no stated prerequisite such as both runs needing to come from the same suite.

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

Deploy Server

Other Tools