Skip to main content
Glama
Odds-API MCP Server

Odds-API MCP Server

Official

List leagues

get_leagues
Read-onlyIdempotent

Lists leagues for a sport with name, slug, and active event count. Use the returned league slug in event and odds tools.

Instructions

List leagues for a sport with name, slug and active event count. Call get_sports first for the sport slug; use the league slug in get_events and other tools.

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>"
    },
    "name": "get_leagues"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoIf true, include leagues without active events
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.
maxResultsNoOptional cap on the number of items returned to you (applied after the API call).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 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"
      +}
    • 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', 'basketball', 'tennis')"New value: +"Sport slug from get_sports (e.g. 'football', 'basketball', 'tennis')"
  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, non-destructive and open-world, so safety is covered. The description adds that results carry an active event count and that the league slug is the join key for later calls, which is real behavioral context. It does not touch rate limits or result-set bounds, though the maxResults/fields schema covers the latter.

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?

Two short sentences with the resource and its output fields front-loaded, then the dependency chain. No filler, no restatement of the title.

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?

There is no output schema, so the description must convey the response shape; naming name/slug/active event count is the minimum needed and it does that. It stops short of describing the response envelope (total count, pagination or how filtering by 'all' affects the payload), which the schema only partially implies.

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 description coverage is 100% and the schema already says 'Sport slug from get_sports', so the description's prerequisite sentence largely repeats structured data. The one genuine addition is cross-tool guidance on reusing the returned league slug, which is workflow rather than parameter meaning. Baseline 3 applies when the schema does the heavy lifting.

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 ("List leagues for a sport") plus the payload it returns ("name, slug and active event count"), which distinguishes it from get_events/get_sports without opening any schema. An agent can identify the tool's role immediately.

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 gives the prerequisite ("Call get_sports first for the sport slug") and the downstream consumer ("use the league slug in get_events and other tools"). This is a complete call-order contract, not just a hint.

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