Skip to main content
Glama

Understat expected-goals player stats for one league

sports_understat_xg
Read-only

Understat expected-goals (xG) player stats for one league and season: top players by xG with goals, xG, assists, xA, shots, key passes and minutes. Leagues: EPL, La_liga, Bundesliga, Serie_A, Ligue_1, RFPL. Season is the start year (2025 = 2025-26). Related tools on this server, for a different need: sports_fpl_premier_league when you need Fantasy Premier League player stats from the official FPL; sports_fbref when you need soccer competition stats for 16 leagues: league table. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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": "sports_understat_xg"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many players, 1 to 50 (default 10)
leagueNoEPL (default), La_liga, Bundesliga, Serie_A, Ligue_1 or RFPL
seasonNoSeason start year, 2014 to 2026 (default 2025)

Output Schema

NameRequiredDescriptionDefault

No arguments

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?

Annotations only declare readOnlyHint and openWorldHint; the description adds genuinely new behavioral context: cost ($0.002 per successful call), the payment rail (x402/USDC across Base, Solana and 10+ networks), and the fact that failed calls are not charged — material for an agent deciding whether to call. It does not cover freshness of the underlying data, rate limits, or result ordering beyond 'top by xG', which keeps it out of the top band.

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?

It is front-loaded: purpose and returned fields come first, followed by league/season semantics, then sibling routing, then price. The trailing payment sentence is long and carries network detail (Base, Solana, 10 more) that is only marginally useful, and the league enumeration appears twice, once redundantly with 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?

For a three-parameter read-only stats tool with an output schema and full schema coverage, everything an agent needs is present: what data comes back, which leagues/seasons are valid, which sibling to prefer, and what the call costs and when it is billed. Return-value shape is correctly left to the output schema rather than duplicated.

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, but the description adds real interpretation the schema lacks: the explicit mapping '2025 = 2025-26' clarifies the season-start-year convention, and 'top players by xG' explains what the limit parameter actually slices (a ranked list, not an arbitrary page). The league list is repeated verbatim from the schema, which earns no additional credit.

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 states a specific verb and resource ('Understat expected-goals (xG) player stats for one league and season') and enumerates the exact returned fields (goals, xG, assists, xA, shots, key passes, minutes) plus the ranking basis ('top players by xG'). It explicitly separates itself from the two named siblings by naming their distinct data sources, so an agent can distinguish it without opening any schema.

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?

It gives concrete routing conditions for alternatives: use sports_fpl_premier_league for official FPL stats and sports_fbref for 16-league soccer competition/league-table data, which implies this tool is the choice for single-league Understat xG player data. It stops short of an explicit 'use this when…' clause or any explicit exclusion, so routing must be inferred by contrast rather than stated.

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.

Resources