List leagues
get_leaguesLists leagues for a sport with name, slug, and active event count. Use the returned league slug in event and odds tools.
Instructions
List leagues for a sport with name, slug and active event count. Call get_sports first for the sport slug; use the league slug in get_events and other tools.
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": {
"sport": "<sport>"
},
"name": "get_leagues"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | If true, include leagues without active events | |
| sport | Yes | 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). |