Skip to main content
Glama
Odds-API MCP Server

Odds-API MCP Server

Official

Historical odds

get_historical_odds
Read-onlyIdempotent

Fetch closing odds and the final score for a finished event by event ID and bookmakers, with optional markets to limit response size.

Instructions

Closing odds and the final score for one finished event, same shape as get_odds. Get the id from get_historical_events or search_historical_events. Pass markets to keep the response small.

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": {
      "eventId": "<eventId>",
      "bookmakers": "<bookmakers>"
    },
    "name": "get_historical_odds"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventIdYesEvent ID of a finished event
marketsNoComma-separated market names (e.g. 'ML,Totals'). All markets when omitted
bookmakersYesComma-separated bookmaker names (max 30)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.8.3
    • changedInput schema / properties / eventId / description
      Previous value: -"Event ID (from get_historical_events)"New value: +"Event ID of a finished event"
    • addedInput schema / properties / markets
      Added value: +{
      +  "description": "Comma-separated market names (e.g. 'ML,Totals'). All markets when omitted",
      +  "type": "string"
      +}
  2. First observedv1.5.1

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already cover readOnly, idempotent, openWorld, and non-destructive. The description adds useful output context ('same shape as get_odds', includes final score) and a response-size tip, but does not disclose behavior for unfinished events, error conditions, or bookmaker limits beyond the schema.

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

Conciseness5/5

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

Three short sentences, front-loaded with what is returned, followed by id sourcing and a sizing tip. No redundant or filler wording.

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 3-parameter read-only tool without an output schema, the definition is nearly complete: return shape, id source, and response trimming are all covered. Minor gaps remain around non-finished-event behavior and the comma-separated bookmaker format, though the schema documents the latter.

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 100%, so the baseline is 3. The description adds meaning by explaining where eventId comes from and the purpose of markets (keeping the response small), a rationale the schema itself does not provide.

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 description uses a specific verb+resource ('Closing odds and the final score for one finished event') and distinguishes the tool from get_odds by framing it as historical and from related historical siblings. An agent can identify it without opening the 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 explicitly routes the agent to get_historical_events or search_historical_events to source the required id, which is actionable guidance. It lacks explicit when-not-to-use guidance versus get_odds, get_closing_lines, or get_settlements.

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