Skip to main content
Glama
fd-paper-trading MCP Server

fd-paper-trading MCP Server

Official

Compare Runs

compare_runs
Read-onlyIdempotent

Compares two runs of the same strategy to verify they represent the same experiment, flagging incomparable runs and listing rule differences.

Instructions

Compare two runs of the same strategy: are they the same experiment?

Incomparable is a first-class answer, not an error: when the two runs were measured under different rules (cost model, risk overlay, window, …) the result is {"comparable": false, "differences": [...], "stats": null} and is returned as a normal result. Comparing their numbers anyway would be a diff of two quantities that do not mean the same thing.

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": "<run_id>",
      "other_run_id": "<other_run_id>"
    },
    "name": "compare_runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYesUUID of the first run
other_run_idYesUUID of the run to compare it against

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely new behavior: a non-comparable outcome is returned as a normal, non-error result with 'comparable': false, differences populated, and stats null, which an agent could not infer from the hints alone.

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?

The core question is front-loaded in the first line, and the incomparable-case paragraph is the most valuable content. The closing sentence rationalizing why a blind numeric diff is wrong is mildly redundant but reinforces the contract, so it mostly earns its place.

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 rich annotations and an output schema present, the description only needs to cover the edge case and intent, which it does. What remains thin is when to reach for this versus the single-run retrieval siblings, a minor gap for a two-parameter read tool.

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 100% and both parameters are documented as UUIDs, so the baseline is 3. The phrase 'two runs of the same strategy' adds the constraint that both IDs must belong to one strategy, which is mild extra meaning but not format or ordering detail beyond the schema.

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 (compare) and resource (two runs of the same strategy) and frames the question being answered. It is clearly distinguishable from get_strategy_run or list_strategy_runs by the two-run, same-strategy scope declared in the first sentence.

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?

Usage is implied rather than stated: it makes clear the tool serves 'are these the same experiment?' checks, but never explicitly says when to call it instead of get_strategy_run twice, nor any preconditions on run state. The incomparable case is handled well, but that is behavior, not routing guidance.

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