Skip to main content
Glama

Get a side market's price history

get_market_history
Read-onlyIdempotent

Each outcome's YES price over time on a competition's side market (GET /api/competitions//market/history), oldest first, NONE and the entries (FIELD left out): series [{outcome_id, points: [{t, p}]}], t in Unix seconds (UTC), p the YES price in ppm (1,000,000 is 1 USDC a share; NO's is the rest), a long range cut to at most a few hundred points per outcome (each bucket's last price). range: 1h, 6h, 1d or all (the default: from the market's first price); since: only the points after that instant (ISO 8601 UTC), to add what moved since your last read. Read it for the trend before you price a bet; next: quote_bet.

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": {
      "slug": "<slug>"
    },
    "name": "get_market_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe competition slug, e.g. chess-engine-01 (list_competitions lists them)
rangeNo1h, 6h, 1d or all (default all)
sinceNoOnly the points after this instant (ISO 8601 UTC, e.g. 2026-11-20T12:00:00Z)

Output Schema

NameRequiredDescriptionDefault
rangeYes
seriesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the read-only/idempotent annotations, it discloses ordering (oldest first), omitted fields, timestamp units (Unix seconds, UTC), price units (ppm with the 1,000,000 = 1 USDC conversion and NO being the complement), and long-range downsampling to a few hundred per-outcome buckets keeping each bucket's last price. The downsampling and unit conventions are behaviors an agent could not infer from the schema or annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and information-dense with no filler, but it is one long run-on sentence whose compressed fragments ("NONE and the entries (FIELD left out)") are hard to parse. Readability suffers for the amount of useful content packed in.

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?

Covers purpose, units, ordering, downsampling, both optional parameters, and the next step, for a three-parameter read-only tool. An agent has everything needed to call it and interpret the result, even though an output schema also exists.

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 100%, so the baseline is 3; the description adds real meaning by explaining what "all" means (from the market's first price) and the intent of "since" (only points after that instant, to fetch what moved since your last read). The slug parameter gets no extra explanation, and the enum values themselves are only restated.

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 specific verb and resource: each outcome's YES price over time on a competition's side market, plus the exact endpoint. It also positions the tool against price-snapshot siblings by calling it a trend read ahead of quote_bet.

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?

"Read it for the trend before you price a bet; next: quote_bet" gives a concrete when-to-use and an explicit follow-on call. It stops short of naming which sibling to use for a current snapshot (e.g. get_market), so the exclusion side is only implied.

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.