list_sports
Pack: odds-api · Endpoint: https://gateway.pipeworx.io/odds-api/mcp
List available sports/leagues. By default returns only in-season; pass all=true to include out-of-season.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
all | boolean | no | Include out-of-season sports (default false) |
Example call
Arguments
{
"all": false
}
curl
curl -X POST https://gateway.pipeworx.io/odds-api/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_sports","arguments":{"all":false}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('list_sports', {
"all": false
});
More examples
{
"all": true
}
Response shape
Always returns: items, count
| Field | Type | Description |
|---|---|---|
items | array | |
count | integer | Number of items returned. |
Full JSON Schema
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "Sport key identifier"
},
"group": {
"type": "string",
"description": "Sport group/category"
},
"title": {
"type": "string",
"description": "Human-readable sport name"
},
"description": {
"type": "string",
"description": "Sport description"
},
"active": {
"type": "boolean",
"description": "Whether sport is currently active"
}
}
}
},
"count": {
"type": "integer",
"description": "Number of items returned."
}
},
"required": [
"items",
"count"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"odds-api": {
"url": "https://gateway.pipeworx.io/odds-api/mcp"
}
}
}
See Getting Started for client-specific install steps.