Skip to main content
Glama

audit_backtest_and_trades

MEMO7 Anaphero – recompute PnL, annualized Sharpe, max drawdown, and trade count from the caller's trade log. FAIL when the log is missing, metrics diverge, exit_ts < entry_ts, or feature_asof_ts > asof_ts. Never send binary. Cap 20_000 trades / 250 KB. Docs: https://memo7.app/mcp/backtest

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": "audit_backtest_and_trades"
  }
}

Input Schema

NameRequiredDescriptionDefault
splitNo
equityNo
limitsNo
tradesNo
claimedNo
daily_returnsNo
pnl_conventionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the failure conditions (missing log, divergent metrics, exit_ts < entry_ts, feature_asof_ts > asof_ts), the input size caps, and the no-binary rule. It still omits what the response looks like and whether the operation has any side effects, keeping it from a top score.

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?

Dense but front-loaded: the recompute purpose comes first, followed by failure conditions, transport/size constraints, and a docs link. The 'MEMO7 Anaphero' branding prefix is dead weight, but the remaining sentences all carry information.

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?

For a 7-parameter, nested-schema audit tool with no annotations and no output schema, the description covers failure semantics and size limits but leaves the majority of the input contract unexplained. An agent knows what the tool computes and when it errors, but not what to put in most fields.

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% across 7 parameters including nested objects, so the description must compensate and largely does not. Only 'trades'/'claimed'/'pnl_convention' are obliquely referenced via the size cap and divergence check — split, equity, limits, and daily_returns are never explained anywhere.

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 ('recompute') and enumerates the concrete outputs — PnL, annualized Sharpe, max drawdown, trade count — sourced from the caller's trade log, which makes it clearly distinct from the verify_* and get_* siblings. It stops short of explicitly routing away from any named alternative, so it is clear but not maximally differentiated.

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?

Practical constraints ('Never send binary', 'Cap 20_000 trades / 250 KB') and the FAIL conditions imply the applicable scenario (you have a sizable trade log to audit), but there is no explicit 'use this when' framing and no named alternatives or exclusions.

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