Skip to main content
Glama

Surface splits

get_surface_splits
Read-onlyIdempotent

Use for a player's record by surface (hard, clay, grass, carpet), qualifying included: wins, losses, win rate, sets, share of games won, tiebreaks, deciding sets and 6-0 sets, plus the current surface ratings. For one season or the whole career; by_season splits each surface by year. 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_surface_splits"
  }
}

Input Schema

NameRequiredDescriptionDefault
leagueNoLeague. Defaults to tennis. One of: tennis, wta.
seasonNoYear (default the whole career).
by_seasonNoSplit each surface by season.
player_idYesPlayer id from search_players.

Output Schema

NameRequiredDescriptionDefault
nameYes
tourYes
seasonYes
splitsYes
overallYes
ratingsYes
player_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already establish read-only, idempotent, non-destructive behavior, so the description is not burdened with the safety profile. It adds useful context such as qualifying inclusion, current surface ratings, a league-endpoint nuance, and the 3-credit cost.

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 front-loaded with the main use case and remains focused, but the long enumeration of metrics is somewhat verbose, and the credit cost is placed at the end rather than near the top.

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?

With rich annotations, an output schema, and full schema coverage, the description supplies the remaining important context: surface scope, season and by_season behavior, league handling, qualifying inclusion, and credit cost. Nothing essential for correct invocation appears missing.

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 meaning beyond the schema: it lists the surface groups, explains season versus whole career, clarifies by_season as a per-year surface split, and notes the ATP/WTA league handling.

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?

The description clearly states the tool returns a player's record by surface and lists the included surfaces and metrics. It is specific about the resource, but it does not explicitly distinguish itself from sibling tools such as get_player_stats or get_ratings.

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?

The opening 'Use for a player's record by surface' gives implied usage guidance, and the description covers season versus career plus by_season behavior. However, it never names alternatives or states when not to use this tool, despite overlapping sibling tools.

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.