Skip to main content
Glama

Compare two runs

diff
Read-onlyIdempotent

Compare two saved runs to measure per-engine citation-rate changes, adjusted significance, and citations lost or gained.

Instructions

Free, local: reads two saved runs. Citation rate before and after, per engine, on the questions both runs answered: the change in points with a 95% interval and an exact paired test (McNemar, or a sign-flip test when a question has several answers), Holm-adjusted across engines. The verdict is 'change' only when the adjusted p < 0.05. Lists citations lost and gained. Defaults to the latest two runs.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo
fromNo
formatNo

Output Schema

NameRequiredDescriptionDefault
toYes
fromYes
eventsNoengine change events reported between the two runs (reference/engine-events.md: events observed or documented in public only)
enginesYes
overallYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, closed-world and non-destructive, yet the description still adds substantial behavior: the statistical procedure (McNemar or sign-flip test), Holm adjustment across engines, the exact verdict rule (adjusted p < 0.05), that only commonly-answered questions are used, and what is listed (citations lost/gained). This is rich disclosure well beyond the annotation set.

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 the essential 'Free, local: reads two saved runs', and each subsequent clause (metrics, test, adjustment, verdict threshold, outputs, defaults) carries new information. It is dense with statistical terminology but not padded; a light restructuring into discrete sentences would improve scannability.

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?

With an output schema present, return-shape explanation is rightly omitted, and the description fully covers the method and decision rule. The remaining gap is operational: how to identify the two runs, and what happens if the runs answer disjoint question sets (the description hints at filtering but not at failure modes).

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

Parameters2/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 parameter meaning, but it never names or explains 'to' and 'from' — it only alludes to 'two saved runs' and that the latest two are the default, leaving the expected identifier form ambiguous. The 'format' parameter (md/json) is likewise unmentioned, so an agent gets no guidance on output selection or on identifying runs.

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 description states a specific verb and resource ('reads two saved runs', computes citation rate change per engine with a paired test), which is unmistakably distinct from run/report/score_site siblings. An agent can tell exactly what this tool produces: a before/after statistical comparison between two saved runs.

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?

It implies the usage context ('reads two saved runs', 'Defaults to the latest two runs') and flags it as free/local, but never states when to prefer this over re-running or reporting, nor any preconditions (e.g., runs must be comparable). Guidance is implied rather than explicit.

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