Search historical events
search_historical_eventsFind finished sports events by team name across all leagues or a single sport within a 31-day date range, returning event IDs for historical odds lookup.
Instructions
Find finished events by team name across all leagues, optionally for one sport. Date span max 31 days (default: the last 31 days). Returns up to 100 events, newest first. Use the ids with get_historical_odds.
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": {
"query": "<query>"
},
"name": "search_historical_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date in RFC3339 format, at most 31 days after from | |
| from | No | Start date in RFC3339 format | |
| query | Yes | Team name fragment, minimum 3 characters | |
| sport | No | Sport slug from get_sports (e.g. 'football', 'basketball', 'tennis') | |
| fields | No | Optional comma-separated top-level fields to keep on each item (e.g. 'id,home,away,date,status'). Trims large responses. | |
| maxResults | No | Optional cap on the number of items returned to you (applied after the API call). |