search_players
Find MLB players by full or partial name and return their player_id for use with other player tools. Optionally limit results to active players.
Instructions
Find MLB players by name and return their player_id (needed by other player tools).
Args:
name: Full or partial name, e.g. "Ohtani" or "Aaron Judge".
active_only: Only return currently active players.
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": {
"name": "<name>"
},
"name": "search_players"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| active_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |