Skip to main content
Glama

Rivo: Polymarket & Kalshi

Test an idea on settled history

backtest
Read-only

Score copying a signal, or one trader, on markets that already settled: bets, wins, return and a profit curve. Send exactly one of signal, trader or bot (a bot id from list_bots, scored with its own trader or signal, sizing, copy rules, exits and daily limit; fields sent beside it override the bot's). A signal that names no traders reaches back at most 90 days. A trader backtest replays what a paper bot copying them would do, holding each bet to settlement unless mirrorExits is true; copy and dailyCapUsd apply a trader bot's copy rules and daily limit. Its live block is what a real-money bot would have made, at live prices, fees and fill rates; quote live over the paper numbers when judging a trader. slippage scores the live block at a bot's slippage. On Kalshi, live.slippage gives a trader's estimate at 2, 3, 5, 10 and 20 cents (fill rate, profit, return, max drawdown), to compare settings. holdout, sweep and breakdown work on signals only and each costs one more request (a sweep, one per value past the first). Saves nothing and places nothing.

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

Input Schema

NameRequiredDescriptionDefault
botNoA bot id from list_bots, to score that bot exactly as it is set up.
copyNoTrader backtests only: which of the trader's trades to copy, as a trader bot's copy rules. Prices run 0 to 1.
daysNoDays back to score. Defaults to 90.
sweepNoScore the signal at each value of one field.
signalNoConditions a whale buy must meet.
sizingNoBet size: { usd } per trade, or { percent, maxUsd } of the source trade. Defaults to $100 a trade.
traderNoA trader ref, to score copying them.
holdoutNoScore the first two thirds, check on the last third. Use before trusting a result.
slippageNoThe slippage the live block is scored at: cents over the trader's price (0 to 20) or a percent of it. 2.5% by default, as live bots are saved, and never under 2 cents; a setting you choose is scored exactly, so less room loses the fills a moving price takes. A bot's own setting is used with bot.
breakdownNo
dailyCapUsdNoTrader backtests only: the bot's daily limit on buys in dollars, counted in your own day. None by default.
mirrorExitsNoTrader backtests only: sell the share of the position the trader sells, at their price, as a bot set to sell when the trader sells. Defaults to false, holding each bet to settlement.

Output Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / copy / properties / categories / description
      Added value: +"Copy only these categories or kinds of market, e.g. [\"sports\"], [\"tennis\"], [\"nba\", \"nfl\"], [\"politics\"]. Empty copies every market."
    • addedInput schema / properties / copy / properties / maxAmountUsd / description
      Added value: +"Copy only trades of the trader's of at most this many dollars. Null is no ceiling."
    • addedInput schema / properties / copy / properties / maxBets / description
      Added value: +"Stop opening new bets after this many a day, or in all."
    • addedInput schema / properties / copy / properties / maxPrice / description
      Added value: +"Highest price to buy at, 0.01 to 0.99 (0.95 is 95 cents). Null is no ceiling."
    • addedInput schema / properties / copy / properties / minAmountUsd / description
      Added value: +"Minimum bet: copy only trades of the trader's of at least this many dollars. Each fill is judged on its own. Null copies any size."
    • addedInput schema / properties / copy / properties / minPrice / description
      Added value: +"Lowest price to buy at, 0.01 to 0.99 (0.4 is 40 cents). Null is no floor."
    • addedInput schema / properties / copy / properties / newPositionsOnly / description
      Added value: +"Copy only trades that open a new position for the trader; adds to a position they hold are left."
    • addedInput schema / properties / copy / properties / oneSidePerMarket / description
      Added value: +"Never hold both sides of one market."
  2. Changed2 schema fields changed
    • changedInput schema / properties / slippage / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "cents": {
      -        "maximum": 20,
      -        "minimum": 2,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "cents"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "percent": {
      -        "maximum": 20,
      -        "minimum": 0.5,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "percent"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "cents": {
      +        "maximum": 20,
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "cents"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "percent": {
      +        "maximum": 20,
      +        "minimum": 0.5,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "percent"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / slippage / description
      Previous value: -"The slippage the live block is scored at: cents over the trader's price (2 to 20) or a percent of it. 2.5% by default, as live bots are saved. A bot's own setting is used with bot."New value: +"The slippage the live block is scored at: cents over the trader's price (0 to 20) or a percent of it. 2.5% by default, as live bots are saved, and never under 2 cents; a setting you choose is scored exactly, so less room loses the fills a moving price takes. A bot's own setting is used with bot."
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, it discloses a request-cost model (holdout, sweep and breakdown each cost one more request; a sweep costs one per value past the first) and a data-window constraint (signals naming no traders reach back at most 90 days). It also explains that the live block is what a real-money bot would have made at live prices, fees and fill rates, and details Kalshi-specific slippage estimates at 2/3/5/10/20 cents.

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 purpose is front-loaded and nearly every sentence carries information, including non-obvious cost and default rules. It is, however, a single densely parenthesized block; splitting the cost model and the trader/live-block guidance into separate lines would improve scannability without losing content.

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 12-parameter tool with nested objects and an output schema, the description covers the mode selection, override behavior, defaults, request-cost accounting, time-window limits and what the returned numbers represent. Return-value detail is rightly delegated to the output schema, so nothing an agent needs to invoke it correctly is missing.

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 already 92%, so the schema does most of the work, but the description adds real meaning the schema cannot: fields sent beside 'bot' override the bot's settings, mirrorExits defaults to holding to settlement, dailyCapUsd uses the caller's own day, and slippage defaults to 2.5% but is never under 2 cents. These are behavioral semantics, not restatements of property docs.

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?

The opening sentence names a specific verb-plus-resource ('Score copying a signal, or one trader, on markets that already settled') and states the outputs (bets, wins, return, profit curve). The three mutually exclusive input modes (signal, trader, bot) are spelled out, so an agent can distinguish this from siblings like trader_record or create_bot without opening a schema.

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?

It gives explicit invocation rules ('Send exactly one of signal, trader or bot'), points to list_bots for bot ids, and tells the agent to prefer the live block over paper numbers when judging a trader. It also removes ambiguity about side effects ('Saves nothing and places nothing'). It stops short of explicitly contrasting its role against siblings such as trader_record or get_trader.

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