get_events
Pack: odds-api · Endpoint: https://gateway.pipeworx.io/odds-api/mcp
Upcoming + live events for a league (without odds — useful to discover event IDs).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
sport_key | string | yes | |
date_format | string | no | |
event_ids | string | no |
Example call
Arguments
{
"sport_key": "americanfootball_nfl"
}
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":"get_events","arguments":{"sport_key":"americanfootball_nfl"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_events', {
"sport_key": "americanfootball_nfl"
});
More examples
{
"sport_key": "basketball_nba",
"date_format": "iso"
}
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": {
"id": {
"type": "string",
"description": "Event ID"
},
"sport_key": {
"type": "string",
"description": "Sport key"
},
"sport_title": {
"type": "string",
"description": "Sport title"
},
"commence_time": {
"type": "string",
"description": "Event start time (ISO 8601 or unix)"
},
"home_team": {
"type": "string",
"description": "Home team name"
},
"away_team": {
"type": "string",
"description": "Away team name"
}
}
}
},
"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.