Skip to main content
Glama

compare_runs

Read-onlyIdempotent

Compare 2–20 distinct runs in one repository against a selected baseline, rank by objective metric, and inspect signed changes plus threshold/provenance warnings.

Instructions

Compare 2–20 distinct runs in one repo using latest logged metric values.

Baseline must be selected. Rank considers the objective only, independently of threshold eligibility. Changes are signed candidate minus baseline; percentage uses abs(baseline). Missing objective or threshold metrics make a run unevaluable. Check provenance warnings.

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": {
      "repository": "<repository>",
      "run_ids": "<run_ids>",
      "baseline_run_id": "<baseline_run_id>",
      "metric": "<metric>",
      "direction": "<direction>"
    },
    "name": "compare_runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
metricYes
run_idsYes
directionYes
repositoryYes
thresholdsNo
baseline_run_idYes

Output Schema

NameRequiredDescriptionDefault
runsYes
metricYes
sourceYes
warningsNo
directionYes
truncatedNo
repositoryYes
baseline_run_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the description correctly spends its space on computation semantics instead. It discloses non-obvious traits: ranking ignores threshold eligibility, changes are signed candidate minus baseline, percentages use abs(baseline), and missing metrics make a run unevaluable. Return format is left to the output schema, which 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.

Conciseness4/5

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

Five short lines, front-loaded with the core comparison scope before edge rules; no sentence is filler. The telegraphic fragment style ("Baseline must be selected.") is efficient but occasionally terse enough to require a second read.

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 6-parameter analytical tool with an output schema, the description covers scope, prerequisites, ranking semantics, sign conventions, and undefined-value handling. What remains unstated — repository scoping details and the maximize/minimize effect — is either self-evident from the enum or inferable from the schema.

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?

With 0% schema description coverage the description has to carry parameter meaning, and it does for the important ones: run_ids is bounded to 2–20 distinct runs, baseline_run_id is mandatory, metric is the "objective" metric, and thresholds act as an eligibility filter independent of ranking. repository and direction are only implied ("in one repo"), which is a minor residual gap.

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?

"Compare 2–20 distinct runs in one repo using latest logged metric values" gives a specific verb (compare), a resource (runs), and hard scope limits (2–20 runs, single repo, latest logged values). The multi-run comparison framing is functionally distinct from single-run siblings such as get_run or get_metric_history, though no sibling is named explicitly.

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?

"Baseline must be selected" and the 2–20 distinct-run bound are concrete preconditions that steer a correct call, and "Check provenance warnings" tells the agent to validate results. There is no explicit guidance about when to choose this over alternatives, and no exclusions, which keeps it below a 5.

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