Skip to main content
Glama

Player stats

get_player_stats
Read-onlyIdempotent

Use for a player's match statistics by season, qualifying included (by_round splits it out): wins, losses, sets and games won, tiebreaks won and lost, deciding sets, 6-0 sets and retirements, all counted from scores; plus the record by round and by the opponent's ranking (top 10, 11-50, 51-100). No serve statistics: they are not available. Tour: atp (default) or wta; on the shared endpoint pass league: "wta" for the WTA. Costs 3 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": {
      "player_id": "<player_id>"
    },
    "name": "get_player_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
leagueNoLeague. Defaults to tennis. One of: tennis, wta.
seasonNoYear (default every season).
player_idYesPlayer id from search_players.

Output Schema

NameRequiredDescriptionDefault
nameYes
noteYes
tourYes
seasonYes
by_roundYes
by_seasonYes
player_idYes
by_opponent_rankYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations it discloses the credit cost (3 credits), states that all counts are derived from scores (data provenance), and flags an absence (no serve statistics). That is real added context for a read tool whose safety profile is already covered by annotations; return shape is left to the output schema.

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 scope statement and the metric list are front-loaded and every clause carries information (metrics, exclusions, cost). It is dense and slightly run-on in the parenthetical metric list, but there is no filler.

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 100% schema coverage, a full annotation set, and an output schema defining return values, the description only needs to carry scope, cost, and limitations, and it does. The main completeness defect is the mismatched tour vocabulary and the phantom by_round parameter rather than anything missing about the tool's purpose.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds useful league guidance for the shared endpoint, but it conflicts with the schema: it says 'Tour: atp (default) or wta' while the schema enum is ['tennis','wta'] with a 'tennis' default, and it references a 'by_round' split that does not exist among the three properties. Those two statements can send an agent to pass an invalid value or a nonexistent parameter, which is worse than adding nothing.

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 verb-implied resource ('a player's match statistics by season') and then enumerates exactly what is counted (wins, losses, sets/games, tiebreaks, deciding sets, 6-0 sets, retirements, record by round and opponent ranking). That enumeration distinguishes it from get_surface_splits, get_head_to_head, and get_player_matches 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?

'Use for a player's match statistics by season' gives a clear positive usage condition, and 'qualifying included (by_round splits it out)' tells the agent how to get the split view. It also explicitly excludes a use case by warning that serve statistics are not available, though it never names a sibling tool as the alternative for anything.

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.