Skip to main content
Glama

Player

get_player
Read-onlyIdempotent

Use for a player's career: teams played for, and batting (runs, balls, average, strike rate, fours, sixes, hundreds, fifties, highest score) and bowling (overs, wickets, average, economy, strike rate, five-wicket hauls, best) by format, all counted from the ball-by-ball record, which starts in December 2001, so an earlier career shows only the part since. 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": {
      "player_id": "<player_id>"
    },
    "name": "get_player"
  }
}

Input Schema

NameRequiredDescriptionDefault
leagueNoLeague. Defaults to cricket. One of: cricket, test, odi, t20i, ipl, bbl, psl, cpl, blast, hundred, sa20, ilt20, county, wbbl, wpl, hundred_women.
player_idYesPlayer id from search_players.

Output Schema

NameRequiredDescriptionDefault
teamsYes
playerYes
batting_by_formatYes
bowling_by_formatYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description adds genuinely non-obvious behavior: all figures derive from the ball-by-ball record beginning December 2001, so earlier careers are truncated, and each call costs 5 credits — a real cost constraint worth flagging.

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 a single front-loaded sentence leading with the use case, then scope, provenance, and cost in that order. The long parenthetical enumerations of batting and bowling fields are dense but do tell the agent exactly what coverage to expect.

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 an output schema present, return values need not be explained, and the description covers provenance, format dimension and credit cost. The one meaningful omission is how this differs from get_player_stats, which matters given the near-identical sibling.

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% and player_id is documented as coming from search_players, so the schema carries the parameter burden. The description's 'by format' hints at the league parameter's effect but adds no syntax or default detail beyond it, which is the baseline-3 case.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource and scope: a player's career, with enumerated batting and bowling metrics by format. It does not distinguish itself from the close siblings get_player_stats or get_player_matches, so an agent comparing them still has to guess which returns what.

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

Usage Guidelines3/5

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

'Use for a player's career' implies the usage context, and the required player_id sourcing is in the schema, but there are no explicit when-not conditions or named alternatives despite get_player_stats and get_player_matches sitting right beside it.

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