Skip to main content
Glama

espn_team_stats

Read-only

Returns one ESPN team's season statistics grouped into categories such as passing, rushing and defense or batting, pitching and fielding, with values, per-game values and league ranks where ESPN gives them; football adds opponent totals and baseball adds splits such as home, away and by opponent. Requires sport (football, basketball, baseball or hockey; no soccer), league and a team id or abbreviation from espn_teams; optional season and seasontype. Use espn_standings for the league table.

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>",
      "league": "<league>",
      "team": "<team>"
    },
    "name": "espn_team_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
teamYesRequired. Team id (numeric) or abbreviation, e.g. 12 or KC. Discover teams with espn_teams.
sportYesRequired. ESPN sport key. One of football, basketball, baseball, hockey. ESPN publishes no soccer team statistics.
leagueYesRequired. League key within the sport, e.g. nfl, nba, mlb, nhl.
seasonNoOptional. Four-digit ESPN season year, e.g. 2025. Defaults to the current season.
seasontypeNoOptional. Season type: 1 preseason, 2 regular season, 3 postseason, 4 offseason.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already establish that this is a read-only, open-world, non-idempotent operation. The description adds useful behavioral detail about the returned categories, sport-specific variations such as football opponent totals and baseball home/away/opponent splits, and the caveat that ranks appear only where ESPN provides them.

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?

The description is dense but well structured: it front-loads what the tool returns, then covers required inputs and the alternative tool. It is appropriately sized for the tool's complexity, though several clauses repeat information already present in the schema.

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?

Given that an output schema exists, the description need not explain return formatting in more detail. It covers the tool's purpose, sport-specific output variations, required parameters, the no-soccer limitation, team discovery via espn_teams, and the espn_standings alternative, leaving no significant gap for correct invocation.

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 all five parameters are already documented in the input schema. The description reinforces the sport exclusions and the team-id source, but it does not add meaning beyond the schema for season or seasontype, so the baseline score of 3 is appropriate.

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 uses a specific verb and resource: it returns one ESPN team's season statistics, grouped into sport-specific categories such as passing, rushing, defense, batting, pitching, and fielding. It clearly distinguishes the tool from espn_standings and points to espn_teams for team discovery, so an agent can identify its role without opening the 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?

It states the required inputs (sport, league, and a team id or abbreviation), explicitly excludes soccer, and names espn_standings as the alternative for league tables. It also directs the agent to espn_teams for team discovery, covering both when to use this tool and where to go for a related need.

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.