Skip to main content
Glama

Polyrank AI Lab: run a backtest

polyrank_run_backtest

Uses one of the plan's daily backtests: ask the user before calling, then pass confirm: true. Queue a backtest of a saved strategy (strategy_id) or an unsaved spec over [from, to) (ISO dates, at most 366 days), optionally with explicit re-rank cuts. Answers with the queued run; poll polyrank_get_backtest. Results are SIMULATED (each report names its fill model and measured optimism). Counts against your plan's daily backtests. Needs a signed-in Polyrank account on a plan with the AI Lab (every paid plan, from Pro Trader: https://polyrank.app/pricing).

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": {
      "from": "<from>",
      "to": "<to>",
      "confirm": "<confirm>"
    },
    "name": "polyrank_run_backtest"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
cutsNo
fromYes
specNo
confirmYesRequired: true, and only after the user agreed to this call in the conversation.
strategy_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / confirm
      Added value: +{
      +  "const": true,
      +  "description": "Required: true, and only after the user agreed to this call in the conversation.",
      +  "type": "boolean"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "from",
      -  "to"
      -]New value: +[
      +  "from",
      +  "to",
      +  "confirm"
      +]
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (which only say it is a non-read-only, non-destructive, non-idempotent call), the description discloses that it consumes one of the plan's daily backtests, that execution is asynchronous (returns a queued run), that results are simulated with a named fill model and measured optimism, and that authentication with AI Lab entitlement is required. These are the operationally decisive traits annotations cannot express.

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 consent/quota constraint comes first, then inputs, then return handling. The pricing URL and the simulated-results aside are slightly tangential but each carries real information, so almost nothing 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 quota-consuming async mutation with a nested free-form spec and no output schema, the description covers return shape ('the queued run'), follow-up polling, entitlement, and cost. The remaining gap is the opaque spec object, whose expected contents are hinted at only by 'explicit re-rank cuts'.

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

Parameters4/5

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

Schema coverage is only 17%, so the description must carry the load, and it largely does: it explains the strategy_id-vs-spec fork, the half-open [from, to) ISO range with a 366-day cap, and that cuts are explicit re-rank dates. It leaves out the UUID format for strategy_id and the 60-item cap on cuts, and does not hint at what the free-form spec object should contain.

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 a precise verb and resource ('Queue a backtest') and disambiguates the two input modes: a saved strategy via strategy_id or an unsaved spec. It also names the sibling used afterwards (polyrank_get_backtest), so an agent can separate submission from retrieval without inspecting either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit precondition sequence: ask the user first, then pass confirm: true. It also specifies the post-call step (poll polyrank_get_backtest) and the account/plan requirement with a pricing link, which is exactly the routing information an agent needs.

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.