get_leagues_by_team_id
Retrieve every league, both current and historical, that a specific team has participated in. Provide a team ID to get the data.
Instructions
Get all current and historical leagues for a team.
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": {
"team_id": "<team_id>"
},
"name": "get_leagues_by_team_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team_id | Yes | Team 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. |