Skip to main content
Glama
OddsRelay

OddsRelay

Official

Historical odds

history

Read historical odds as a snapshot at a specified time or a UTC day's opening and closing prices by sport and region, with paged results and token-priced calls.

Instructions

Reads historical odds for one sport: the raw board as it stood at a time you name (kind snapshot), or a UTC day's opening and closing prices (kind closing). Serves every region, one region code a call: the UK & Ireland (uk) from 17 October 2026, with exchange prices beside the bookmakers'; each other region from 16 November 2026, bookmakers only. A date outside the archive is refused with date_out_of_range and the earliest or latest date it holds. A day is added the night after it ends, so read today's prices with raw_odds. Spends tokens: priced first, and refused when it would cost more than max_tokens. Paged: pass next_cursor back as cursor within five minutes; each page is priced.

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": {
      "kind": "<kind>",
      "date": "<date>",
      "sport": "<sport>"
    },
    "name": "history"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYessnapshot: a time, ISO 8601, such as 2026-11-16T12:00:00Z. closing: a UTC day, YYYY-MM-DD
kindYessnapshot: the board at one time. closing: one day's opening and closing prices
limitNoMost events to return; a note counts the rest
sportYesWhich sport: a sport key or the start of one, such as soccer
cursorNonext_cursor from the previous reply, with the same other arguments
regionNoOne region code from the regions tool, such as uk or us. Left out, the API uses uk, or refuses with region_required and names the code to send.
marketsNoOnly these market keys, such as h2h
exchangesNoOnly these exchange keys (region uk)
bookmakersNoOnly these bookmaker keys
max_tokensNoRefuse the call when its quoted price is above this many tokens. Ask the user before raising it.
bookmakers_onlyNotrue: leave the exchanges out

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations are weak (readOnlyHint=false, openWorldHint=true, non-idempotent, non-destructive), so the description has to carry the load, and it does: token cost quoted first, refusal above max_tokens, date_out_of_range with the archive's bounds, exchange prices only in uk, and a five-minute cursor window. It does not explain why this billable read is non-read-only in annotation terms, a minor gap.

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?

Front-loaded with the two kinds, then constraints, cost, and paging in descending order of importance; no filler sentences. Dense clause-chaining makes some sentences carry several facts at once, which costs a little readability.

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 an 11-parameter, multi-region, billable, paginated read with no output schema, the description covers everything an agent needs before calling: mode choice, availability dates, region handling, error names, cost ceiling, and cursor lifetime. Nothing material is left to inference.

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, but the description adds real meaning the schema lacks: cursor must be reused with the same other arguments within five minutes, the uk default for region, and each page being priced separately. Remaining parameters (markets, bookmakers, exchanges, limit) are only glossed by the schema.

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 ('Reads historical odds for one sport') and immediately disambiguates the two modes, snapshot and closing, with a one-line gloss of each. It also names raw_odds as the tool for today's prices, so an agent can separate this from a sibling without consulting schemas.

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 explicit selection rules: snapshot for a named time, closing for a UTC day, raw_odds for today's prices. It also states the per-region date availability windows and the one-region-per-call constraint, so the agent knows when this tool cannot serve a request.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.