Skip to main content
Glama

backtest_reconcile

Read-only

Check a trading backtest: recompute net profit, win rate, profit factor, max drawdown and trade count from the trade list (CSV or JSON) and compare them with the claimed numbers. Returns each metric as MATCH or MISMATCH with the recomputed value and finding codes. Price: $0.01 USDC per call, paid with x402 on Base.

Input Schema

NameRequiredDescriptionDefault
tradesNo
claimedNo
commissionNo
trades_csvNo
tolerance_pctNo
initial_capitalNo
single_positionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations cover readOnlyHint and openWorldHint, and the description adds genuinely useful context beyond them: the exact set of metrics recomputed, the MATCH/MISMATCH return shape, and a payment requirement ($0.01 USDC via x402 on Base) which is important invocation context. It omits behavioral details like how tolerance_pct affects MATCH decisions, holding it back from a 5.

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?

Three tight sentences, front-loaded with the core action and metrics, then the return format, then cost. No filler; the only minor question is whether the pricing sentence belongs in the description, but it is legitimately useful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The readOnly annotation covers safety and the description usefully describes the return values in lieu of an output schema. However, with 7 undocumented parameters (including nested trades/claimed objects and behavioral knobs like tolerance_pct and initial_capital), an agent cannot confidently invoke this correctly from the definition alone.

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 coverage is 0% across 7 parameters, so the description carries the full burden. It only touches the trade input ('trade list (CSV or JSON)') and the claimed numbers, leaving commission, tolerance_pct, initial_capital, single_position, and the trades/claimed structure completely undefined. The compensation is far short of what 0% coverage demands.

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?

States specific verbs (recompute, compare) and the exact resource (net profit, win rate, profit factor, max drawdown, trade count from a trade list). An agent immediately understands it is a reconciliation/verification tool rather than a backtest runner. Siblings are unrelated, so no differentiation is needed.

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 description implies the usage context (checking a claimed backtest against a trade list) but never states when to use it versus alternatives or any prerequisites. There are no exclusions or competing tools named, leaving usage to inference.

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