Skip to main content
Glama
Odds-API MCP Server

Odds-API MCP Server

Official

Historical events

get_historical_events
Read-onlyIdempotent

Retrieve finished events for a sport and league within a date range to get event IDs for historical odds lookup.

Instructions

Finished events for one sport and league in a date range (max 31 days; data from December 2025). Use the ids with get_historical_odds. To find a past match by team name use search_historical_events instead. Score periods use keys p1..pN, ft, ot and ap (older keys period1, overtime, penalties, fulltime stop on 12 November 2026).

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": {
      "sport": "<sport>",
      "league": "<league>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "get_historical_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesEnd date in RFC3339 format, at most 31 days after from
fromYesStart date in RFC3339 format (e.g. '2026-01-01T00:00:00Z')
sportYesSport slug from get_sports (e.g. 'football', 'basketball', 'tennis')
fieldsNoOptional comma-separated top-level fields to keep on each item (e.g. 'id,home,away,date,status'). Trims large responses.
leagueYesLeague slug from get_leagues (e.g. 'england-premier-league')
maxResultsNoOptional cap on the number of items returned to you (applied after the API call).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.8.3
    • addedInput schema / properties / fields
      Added value: +{
      +  "description": "Optional comma-separated top-level fields to keep on each item (e.g. 'id,home,away,date,status'). Trims large responses.",
      +  "type": "string"
      +}
    • changedInput schema / properties / from / description
      Previous value: -"Start date in RFC3339 format (e.g., '2026-01-01T00:00:00Z')"New value: +"Start date in RFC3339 format (e.g. '2026-01-01T00:00:00Z')"
    • changedInput schema / properties / league / description
      Previous value: -"League slug (e.g., 'england-premier-league')"New value: +"League slug from get_leagues (e.g. 'england-premier-league')"
    • addedInput schema / properties / maxResults
      Added value: +{
      +  "description": "Optional cap on the number of items returned to you (applied after the API call).",
      +  "type": "number"
      +}
    • changedInput schema / properties / sport / description
      Previous value: -"Sport slug (e.g., 'football')"New value: +"Sport slug from get_sports (e.g. 'football', 'basketball', 'tennis')"
    • changedInput schema / properties / to / description
      Previous value: -"End date in RFC3339 format (e.g., '2026-01-31T23:59:59Z')"New value: +"End date in RFC3339 format, at most 31 days after from"
  2. First observedv1.5.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, open-world and non-destructive, so the description's job is to add operational constraints — and it does: max 31-day windows, data availability from December 2025, and score-period key structure with a deprecation date for older keys. It does not discuss pagination or what happens when the range exceeds 31 days (error vs. truncation), which is the main remaining gap.

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 dense sentences, front-loaded with purpose, then workflow routing, then output key semantics. No filler and no repetition of schema or annotation content beyond the range cap that the schema only partially covers.

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?

Complete enough for a six-parameter read tool with no output schema: it covers scoping, sibling routing, data availability, and result key naming. The missing piece is behavior on oversized ranges or empty results, a minor omission given full schema coverage and safe annotations.

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

Parameters3/5

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

Schema coverage is 100%, so all six parameters including fields and maxResults are already documented in the schema; the description adds no parameter-level syntax beyond what is there. The score-period key explanation is valuable but concerns output shape rather than input parameters.

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-scoped resource: finished events for one sport and league within a date range, and distinguishes itself from the live/upcoming get_events tools and from search_historical_events. It also names the downstream sibling get_historical_odds, making the intended workflow unambiguous.

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?

Explicitly routes the agent: use returned ids with get_historical_odds, and use search_historical_events when searching by team name instead. It also states the 31-day range cap and the December 2025 data start, which are conditions that determine whether the tool can be used at all.

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