Skip to main content
Glama

Advanced stats

get_advanced_stats
Read-onlyIdempotent

Use for tracking and advanced metrics the box score does not carry. Player tracking (tracking_*, 2016+): time to throw, air yards, completion percentage above expectation, separation, cushion, rush yards over expected. Advanced charting (charting_*, 2018+): pressures, hurries, blitzes, drops, bad throws, missed tackles, coverage yards allowed. Pick a source, then filter by season, week, player or team. Costs 5 credits.

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": {
      "source": "<source>"
    },
    "name": "get_advanced_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
teamNoTeam code
weekNoWeek. Tracking sets also have week 0, the season aggregate.
limitNoMax rows (default 50)
seasonNoSeason year. Defaults to current. Tracking from 2016, charting from 2018.
sourceYesWhich dataset: tracking_passing, tracking_rushing, tracking_receiving, charting_passing, charting_rushing, charting_receiving, charting_defense
player_idNoPlayer id from search_players (e.g. 00-0033873), for any source

Output Schema

NameRequiredDescriptionDefault
noteNo
countYes
statsYes
seasonYes
sourceYes
metric_keysYes
player_id_kindYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / player_id / description
      Previous value: -"GSIS id (player_id) for a tracking_* source, pfr_id for a charting_* source; both are on search_players"New value: +"Player id from search_players (e.g. 00-0033873), for any source"
  2. Changed5 schema fields changed
    • changedInput schema / properties / player_id / description
      Previous value: -"GSIS id for an ngs_* source, PFR id for a pfr_* source; both are on search_players"New value: +"GSIS id (player_id) for a tracking_* source, pfr_id for a charting_* source; both are on search_players"
    • changedInput schema / properties / season / description
      Previous value: -"Season year. Defaults to current. NGS from 2016, PFR from 2018."New value: +"Season year. Defaults to current. Tracking from 2016, charting from 2018."
    • changedInput schema / properties / source / description
      Previous value: -"Which dataset: ngs_passing, ngs_rushing, ngs_receiving, pfr_passing, pfr_rushing, pfr_receiving, pfr_defense"New value: +"Which dataset: tracking_passing, tracking_rushing, tracking_receiving, charting_passing, charting_rushing, charting_receiving, charting_defense"
    • changedInput schema / properties / source / enum
      Previous value: -[
      -  "ngs_passing",
      -  "ngs_rushing",
      -  "ngs_receiving",
      -  "pfr_passing",
      -  "pfr_rushing",
      -  "pfr_receiving",
      -  "pfr_defense"
      -]New value: +[
      +  "tracking_passing",
      +  "tracking_rushing",
      +  "tracking_receiving",
      +  "charting_passing",
      +  "charting_rushing",
      +  "charting_receiving",
      +  "charting_defense"
      +]
    • changedInput schema / properties / week / description
      Previous value: -"Week. NGS also publishes week 0 as the season aggregate."New value: +"Week. Tracking sets also have week 0, the season aggregate."
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, closed-world behavior, so the description adds real value on other axes: a 5-credit cost, and the historical coverage windows (tracking from 2016, charting from 2018). It does not discuss row limits or result volume, which is the main remaining behavioral gap.

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?

Three dense sentences with the use case front-loaded, then the source taxonomy, then the filter workflow and cost. Every sentence carries information, though the metric enumerations are long and the cost line would be easier to scan if segmented.

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?

For a six-parameter, enum-driven, read-only query tool with a full schema and an output schema, the description covers purpose, source choice, filterable dimensions, historical availability, and credit cost. Missing only pagination/result-size expectations, which the limit parameter partially covers in schema.

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 exceeds it by explaining what each source family contains (tracking_* vs charting_* metrics) and by tying season eligibility to the chosen source. It does not add detail on limit or player_id formatting beyond what the schema already says.

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?

The description names a specific verb and resource set: tracking metrics (time to throw, air yards, separation, rush yards over expected) and charting metrics (pressures, drops, coverage yards allowed) that the box score does not carry. It also clearly separates the two families by prefix (tracking_*, 2016+ vs charting_*, 2018+), which distinguishes it from the box-score siblings like get_player_stats and get_team_stats.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Use for tracking and advanced metrics the box score does not carry" gives a clear selection condition against the basic stat tools, and "Pick a source, then filter by season, week, player or team" states the invocation order. It stops short of explicitly naming an alternative tool or stating when NOT to use it, so it falls just under the 5 bar.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.