search_players
Pack: sports · Endpoint: https://gateway.pipeworx.io/sports/mcp
Search for players by name. Returns player name, team, nationality, position, description, and thumbnail URL.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Player name or partial name to search for |
Example call
Arguments
{
"query": "Cristiano Ronaldo"
}
curl
curl -X POST https://gateway.pipeworx.io/sports/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_players","arguments":{"query":"Cristiano Ronaldo"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('search_players', {
"query": "Cristiano Ronaldo"
});
More examples
{
"query": "LeBron James"
}
Response shape
Always returns: total, players
| Field | Type | Description |
|---|---|---|
total | integer | Total number of players found |
players | array | List of players matching the search query |
Full JSON Schema
{
"type": "object",
"properties": {
"total": {
"type": "integer",
"description": "Total number of players found"
},
"players": {
"type": "array",
"description": "List of players matching the search query",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "TheSportsDB player ID"
},
"name": {
"type": "string",
"description": "Player name"
},
"team": {
"type": [
"string",
"null"
],
"description": "Current team name"
},
"nationality": {
"type": [
"string",
"null"
],
"description": "Player nationality"
},
"position": {
"type": [
"string",
"null"
],
"description": "Playing position"
},
"description": {
"type": [
"string",
"null"
],
"description": "Player description in English"
},
"thumbnail_url": {
"type": [
"string",
"null"
],
"description": "Player thumbnail image URL"
}
},
"required": [
"id",
"name"
]
}
}
},
"required": [
"total",
"players"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"sports": {
"url": "https://gateway.pipeworx.io/sports/mcp"
}
}
}
See Getting Started for client-specific install steps.