Skip to main content
Glama
underdog-api-mcp

underdog-api-mcp

Official

Training set

get_training_set
Read-onlyIdempotent

Fetch labelled graded line rows with multipliers, closing side tier, and outcome as JSON or CSV to build and train prediction models.

Instructions

One labelled row per graded line (line, multipliers, closing side tier, outcome) for model training, as JSON or CSV. For browsing results use get_results. Paid plans; a Free key gets a labelled sample and the upgrade link (HTTP 402). Needs UNDERDOG_API_KEY (free key, no card, at https://underdogapi.com/sign-up); without one it returns the sign-up link and spends nothing.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_training_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoGame date YYYY-MM-DD, US Eastern.
statNoExact machine stat slug, for example points, rebounds or passing_yards (get_coverage lists them).
limitNoRows per page, 1 to 200.
cursorNometa.next_cursor from the previous page, sent with the same filters. Omit for the first page.
formatNojson (default) or csv.
leagueNoSport code in upper case from get_coverage, for example NBA, NFL, NHL, CBB, CFB, TENNIS, CS; comma-separate several. Omit for all.
playerNoPlayer name, case-insensitive.
include_voidNotrue also returns void rows.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / properties / cursor / description
      Previous value: -"meta.next_cursor from the previous page, with the same filters"New value: +"meta.next_cursor from the previous page, sent with the same filters. Omit for the first page."
    • addedInput schema / properties / date
      Added value: +{
      +  "description": "Game date YYYY-MM-DD, US Eastern.",
      +  "type": "string"
      +}
    • addedInput schema / properties / format
      Added value: +{
      +  "description": "json (default) or csv.",
      +  "enum": [
      +    "json",
      +    "csv"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / include_void
      Added value: +{
      +  "description": "true also returns void rows.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / league / description
      Previous value: -"League code from get_coverage, for example NBA, NFL, NHL, CBB, CFB, TENNIS, CS"New value: +"Sport code in upper case from get_coverage, for example NBA, NFL, NHL, CBB, CFB, TENNIS, CS; comma-separate several. Omit for all."
    • changedInput schema / properties / limit / description
      Previous value: -"Rows per page"New value: +"Rows per page, 1 to 200."
    • addedInput schema / properties / player
      Added value: +{
      +  "description": "Player name, case-insensitive.",
      +  "type": "string"
      +}
    • changedInput schema / properties / stat / description
      Previous value: -"Stat slug"New value: +"Exact machine stat slug, for example points, rebounds or passing_yards (get_coverage lists them)."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare the safety profile (readOnly, idempotent, non-destructive, open-world), and the description adds what annotations cannot: the paywall tier, the HTTP 402 plus sample-row fallback for Free keys, the UNDOGOD_API_KEY requirement with sign-up URL, and that an unauthenticated call spends nothing. Those are the failure modes an agent would otherwise hit blind.

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 output shape and the sibling routing, then the paywall caveat. It is dense but the sign-up URL is spelled out twice ('at https://...' and 'returns the sign-up link'), which is slight redundancy in an otherwise tight definition.

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, and the description compensates by naming the per-row fields. Pagination is handled by the cursor parameter's own schema text, and auth, plan limits and error behavior are all covered, so an agent has what it needs for this read-only export tool.

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 every parameter including cursor, include_void and the league slug format is already documented in structured data. The description only restates the JSON/CSV output choice and the returned columns, adding no filter semantics beyond the schema, which is the expected baseline.

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 resource and shape: 'one labelled row per graded line' with the exact columns (line, multipliers, closing side tier, outcome) and both output formats. It also explicitly separates itself from get_results, so the agent can distinguish training-data extraction from result browsing.

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?

Names the alternative ('For browsing results use get_results') and the condition that selects it, plus plan gating ('Paid plans; a Free key gets a labelled sample') and the auth precondition. There is nothing left to infer about when this tool is the right call.

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