Skip to main content
Glama

Backtest Vault

Compare two runs

compare_runs
Read-onlyIdempotent

What it does: puts two saved runs side by side. Returns: the headline metrics of each plus spec_differences, the exact spec fields that differ with both values. When to use: 'is the 40-tick stop better than the 60?', or any A/B question about two runs. Free.

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": {
      "run_id_a": "<run_id_a>",
      "run_id_b": "<run_id_b>"
    },
    "name": "compare_runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_id_aYes
run_id_bYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered structurally. The description adds genuine context beyond that: the return payload shape (metrics per run plus differing spec fields with both values) and that the call is 'Free'. It says nothing about behavior when a run_id is invalid or whether the two runs must share a spec lineage.

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?

Labelled clauses (What it does / Returns / When to use) make it scannable and the key facts are front-loaded with no repetition. The trailing one-word sentence 'Free' is slightly clipped in isolation but carries real information, so little is wasted.

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 tool with no output schema, the description covers purpose, return content and selection guidance sufficiently to invoke it. The remaining gaps are edge behavior (nonexistent run IDs, mismatched specs) rather than anything blocking a correct first call.

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 both run_id_a and run_id_b are bare strings in the schema. The description partially compensates by establishing that these identify 'saved runs' (not specs or other entities), but it never explains ordering, whether the roles of a and b are symmetric, or what a malformed ID yields.

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 concrete verb and resource ('puts two saved runs side by side') and goes further by naming what comes back (headline metrics plus spec_differences). The word 'two' implicitly separates it from the single-run get_run, but no sibling is named explicitly, so differentiation is by inference.

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?

Provides an explicit when-to-use clause with a worked example ('is the 40-tick stop better than the 60?') and generalizes it to 'any A/B question about two runs'. It does not state when-not to use it or name an alternative tool, 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources