Skip to main content
Glama

EventTrader MCP

Get Strategy Returns

get_strategy_returns
Read-onlyIdempotent

Return the grounded backtest metrics (ROI/Sharpe/win-rate/drawdown) for a strategy concept, each WITH the window it covers: latest_metrics.period is the backtest run's own time range and leaderboard carries the /api/v1/backtest/leaderboard figures for the same bot with their headline_period. They are different measurements — rank within one window only. Accepts the concept id (bt-cryptobull-blue) or the leaderboard slug (cryptobull-blue, bot-rsi-mean-reversion). Metrics come only from real rows — a strategy with no runs returns a note, never a fabricated number.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
strategyYesStrategy concept slug (e.g. 'bt-odiv') or a /api/v1/backtest/leaderboard slug (e.g. 'cryptobull-blue')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, and non-destructive behavior; the description adds meaningful behavioral detail beyond that: metrics come only from real rows, a strategy with no runs returns a note rather than fabricated numbers, and the two measurement windows are explicitly different. No contradiction with annotations.

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 description is dense and mostly efficient, with every sentence contributing. The backtick-heavy second sentence is slightly run-on and could be broken up, but it contains necessary distinctions rather than filler.

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

Completeness5/5

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

For a single-parameter, read-only tool with no output schema, this description covers inputs, return semantics, the difference between two measurement windows, and the no-data failure behavior. An agent has enough information to invoke the tool correctly and interpret its response.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is 100%, the description adds significant semantic value beyond the schema: it explains the difference between concept ids and leaderboard slugs, gives concrete examples of each, and clarifies which window each metric covers. This meaningfully improves an agent's ability to supply the correct parameter.

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?

Clearly states the tool returns grounded backtest metrics (ROI/Sharpe/win-rate/drawdown) for a strategy concept, with explicit differentiation between latest_metrics.period and leaderboard headline_period. This distinguishes it from other backtest-related sibling tools and makes its purpose unmistakable.

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 clear context on when to use it and exactly what inputs are accepted (concept id or leaderboard slug) with examples. It doesn't explicitly name sibling alternatives or exclusion conditions, but the usage scope is well-defined and not misleading.

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