Skip to main content
Glama

nba_player_compare

Read-only

Get NBA two-sided player comparison. Compares two sets of players over one season, measure and aggregation. Each side accepts one or more player ids, either repeated (?player_ids=1&player_ids=2) or comma-separated (?player_ids=1,2); the ids are validated locally and forwarded in the upstream's comma-separated form. The response is the comparison's result sets (an individual-stats table and a team-stats table), keyed by the upstream's own column names such as GROUP_SET, DESCRIPTION, FGM, FGA, FG_PCT, REB, AST, PTS and PLUS_MINUS.

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

Input Schema

NameRequiredDescriptionDefault
seasonNoOptional season in YYYY-YY form, for example 2026-27. Defaults to the current NBA season.
per_modeNoOptional aggregation; defaults to PerGame.
league_idNoOptional league id; only 00 (NBA) is verified.
player_idsNoOne or more player ids for the left side, repeated or comma-separated, for example 1628398 or 1628398,2544.
season_typeNoOptional season type; defaults to Regular Season.
measure_typeNoOptional statistic family; required by the upstream, defaults to Base.
vs_player_idsNoOne or more player ids for the right side, repeated or comma-separated, for example 2544.

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

B3.2/5.0
Behavior3/5

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

Annotations already establish readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description does add real behavioral context beyond that: ids are validated locally and forwarded to the upstream in comma-separated form, and the response contains two distinct result sets keyed by the upstream's own column names. It omits failure behavior, rate limits, and how ambiguous ids are handled.

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?

Three sentences, front-loaded with the purpose before the input mechanics and return shape. The column-name enumeration (GROUP_SET, DESCRIPTION, FGM, FGA, FG_PCT, REB, AST, PTS, PLUS_MINUS) is partly padded by an output schema that already exists, but the prose stays dense and readable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 100% schema coverage, an output schema, and only read-only annotations, most structure is already documented. The description is adequate but omits practical details an agent needs, such as where valid player ids come from and what the two result sets mean in practice; its return-value explanation is largely redundant with the existing output schema.

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 the baseline is 3. The description reinforces the two-sided id mapping (player_ids vs vs_player_ids) and the repeated/comma-separated input syntax, but that syntax is already stated in the schema, so it adds little genuinely new meaning.

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 concrete verb and resource: 'Get NBA two-sided player comparison,' then clarifies it compares two player sets over one season, measure and aggregation. It is distinguishable from single-player stat siblings by the explicit 'two-sided' framing, though no sibling is named.

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

Usage Guidelines2/5

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

The description explains how to pass ids but never says when to choose this tool over nba_player_stats, nba_player_career_stats, or other per-player stat tools, and offers no exclusions or prerequisites. Usage is only implied by the word 'comparison.'

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.