Skip to main content
Glama

Nba Search Players

nba_search_players
Read-onlyIdempotent

"Find NBA player [name]" / "search NBA roster for [X]" / "is [player] in the NBA", search NBA players by name on BallDontLie. Returns position, height, weight, college, country, draft info, and current team. NOTE: per-season averages (PPG/RPG/APG) and career stats are NOT in this response, those require BallDontLie's ALL-STAR tier ($9.99/mo at https://www.balldontlie.io/) via the /season_averages endpoint, which is not currently exposed by Pipeworx. Free-tier _apiKey works for this tool.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "LeBron James"
    },
    "name": "nba_search_players"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of results to return (default: 10, max: 100)
queryYesPlayer name or partial name to search for
_apiKeyYesBallDontLie API key

Output Schema

NameRequiredDescriptionDefault
queryYesSearch query for player names
totalYesTotal count of matching players
playersYesList of matching players
returnedYesNumber of players returned in this response

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world behavior, so the description's contribution is the added context it does provide: the auth requirement ('Free-tier _apiKey works for this tool') and the explicit gap that PPG/RPG/APG and career stats are unavailable. That prevents a wasted follow-up call, though it does not discuss pagination or result-set limits beyond what the schema states.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and return fields are front-loaded, which is good, but a large fraction of the text is a pricing/tier explanation with a URL that is tangential to invoking the tool correctly. It could be compressed to one clause ('season averages require a paid tier and are not exposed') without losing meaning.

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?

An output schema exists, so return values need not be explained (though the description does so helpfully), and the description still covers auth, result fields, and the key limitation around stats. For a three-parameter search tool with an output schema, this is close to complete.

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 query, limit, and _apiKey are already fully documented in structured data. The description adds only that matching is by player name or partial name, which is already implied by the schema text; the baseline 3 applies.

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 states a specific verb and resource ('search NBA players by name on BallDontLie') and lists the returned fields, so the agent knows exactly what this does. It does not explicitly differentiate from the sibling nba_get_player, leaving the search-vs-lookup distinction to be inferred from the tool names.

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?

Quoted example phrasings ('Find NBA player [name]', 'is [player] in the NBA') give clear conditions for when this tool applies, and the note that stats are not returned steers the agent away from expecting averages. There is no explicit exclusion naming an alternative tool such as nba_get_player for direct lookups.

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.