Skip to main content
Glama
Odds-API MCP Server

Odds-API MCP Server

Official

Get same game parlay legs

get_sgp_legs
Read-onlyIdempotent

List eligible same game parlay legs for a pre-match event, with copy-pasteable legIds plus per-bookmaker prices and eligibility, so you can select valid legs for quoting an SGP.

Instructions

List the legs of one pre-match event that can go into a same game parlay. Each leg has a copy-pasteable legId, market, hdp, label, side and, per bookmaker, eligible (can be combined there), price and updatedAt. Pass the legId values to quote_sgp; never build a legId by hand. The response also has bookmakers: one entry per requested bookmaker, in request order, with status ok, leg_unavailable, unsupported or temporarily_unavailable. When it is not ok, every leg reads eligible false at that bookmaker and nextAction says what to do: retry_later (call get_sgp_legs again after retryAfter seconds) or choose_other_bookmaker; leave that bookmaker out of quote_sgp. Pick legs that are eligible at every bookmaker you will quote, and never two sides of one line (for example ML home and ML away, or over and under the same total): the API rejects that with a 400. Page with limit (default 200, max 1000) and skip while hasMore is true. Use markets to keep the response small. Included in all paid plans.

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_sgp_legs"
  }
}

Input Schema

NameRequiredDescriptionDefault
skipNoLegs to skip, for paging (default 0)
limitNoLegs to return (default 200, max 1000)
eventIdYesEvent ID from get_events. Must be pre-match
marketsNoComma-separated market names to keep, max 40 (e.g. 'ML,Spread,Totals')
bookmakersYesComma-separated names from list_sgp_bookmakers, max 8 per request, from the key's selection

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.9.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds substantial behavior beyond them: the per-bookmaker status vocabulary (ok, leg_unavailable, unsupported, temporarily_unavailable), the nextAction values (retry_later with retryAfter seconds, choose_other_bookmaker), the effect on eligibility flags, and the 400 rejection rule for opposing sides of one line.

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 purpose, then usage, then response shape and error semantics; dense but nearly every clause carries operational information. A few sentences are long and pack multiple rules together, which slightly hurts scanability.

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?

No output schema exists, yet the description enumerates the returned leg fields (legId, market, hdp, label, side, eligible, price, updatedAt) and the bookmakers array with status ordering. Combined with paging and error handling, an agent has everything needed to call and interpret it.

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 still adds value by restating limit defaults (200, max 1000) in the paging context and explaining that markets exists specifically to shrink the response rather than just to filter.

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 the legs of one pre-match event that can go into a same game parlay') and scopes it to pre-match SGP use, which cleanly separates it from quote_sgp and the odds-fetching siblings.

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 downstream routing ('Pass the legId values to quote_sgp; never build a legId by hand'), selection constraints (eligible at every bookmaker you quote, never two sides of one line or the API rejects with 400), performance advice (use markets to keep the response small), and paging rules while hasMore is true. It also says what to do when a bookmaker status is not ok.

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