Skip to main content
Glama
underdog-api-mcp

underdog-api-mcp

Official

Player hit rates

get_hit_rates
Read-onlyIdempotent

Calculates how often a player went Higher or Lower across recent graded games per stat, excluding voids, so you can compare recent hit rates before picking.

Instructions

How often one player went Higher or Lower across recent graded games, per stat, voids excluded. Send player or player_id. For the graded rows themselves 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_hit_rates"
  }
}

Input Schema

NameRequiredDescriptionDefault
lastNoMost recent graded games to count, 1 to 100.
statNoExact machine stat slug, for example points, rebounds or passing_yards (get_coverage lists them).
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.
player_idNoPublic player id from a previous row.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / last / description
      Previous value: -"Games"New value: +"Most recent graded games to count, 1 to 100."
    • 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 / player / description
      Previous value: -"Player name"New value: +"Player name, case-insensitive."
    • addedInput schema / properties / player_id
      Added value: +{
      +  "description": "Public player id from a previous row.",
      +  "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)."
    • changedInput schema / required
      Previous value: -[
      -  "player"
      -]New value: +[]
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, but the description adds genuinely non-obvious behavior: voids are excluded from counts, the free-tier response is a labelled sample with an upgrade link, an unauthenticated call spends nothing, and HTTP 402 is the paid-tier signal. The only gap is that it doesn't say what happens when no player filter is supplied or whether results are ordered.

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 core purpose, then routing, then access conditions — a sensible order, and every sentence carries information. It is dense but slightly cramped, repeating the free-key/sign-up concept twice (URL in parentheses and then again as 'returns the sign-up link').

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?

With no output schema and full annotation coverage, the description carries enough: it explains the counting semantics, excludes voids, and describes the degraded free-tier response. What is missing is the shape of a successful response (fields per row, aggregation window default for last) and any pagination or ordering behavior.

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%, so both the type and meaning of every parameter are already documented; the description adds only the soft requirement that the caller send player or player_id and the note that voids are filtered out of the count. That is useful but marginal, so the baseline 3 for fully covered schemas is right.

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 precise verb+resource combination — how often one player went Higher or Lower per stat over recent graded games — with an explicit scope qualifier ('voids excluded'). It distinguishes itself from the sibling that returns the underlying rows by naming get_results, so the agent can separate the two without opening either schema.

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 an explicit when-to-use-this alternative rule ('for the graded rows themselves use get_results') plus the entry condition ('send player or player_id') and pointers to get_coverage for stat slugs and league codes. It also states the access-tier condition (paid plans; free key gets a labelled sample) so an agent knows the expected outcome before calling.

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