get_league_by_id
Retrieve a specific football league by its unique ID. Optionally include related data such as country, seasons, and current season.
Instructions
Get a single league by ID.
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": {
"id": "<id>"
},
"name": "get_league_by_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | League ID. | |
| include | No | Semicolon-separated includes. e.g. country;seasons;currentSeason;stages;rounds | |
| select | No | Comma-separated fields to return. | |
| filters | No | Filters to apply. | |
| sortBy | No | Field to sort by. | |
| locale | No | Language for name fields. | |
| page | No | Page number. | |
| per_page | No | Results per page. |