get_leaders
Who led a country (or every country) in a year, 1800-2025: heads of state, heads of government and ruling-party leaders, in the order they held the post. Each name is quoted from Wikipedia's list of state leaders (revision id given) and kept only where the person's Wikidata record holds the same post over the same years, so a missing name means the sources disagree, not that the post was empty.
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": {
"year": "<year>"
},
"name": "get_leaders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | 1800 to 2025 | |
| country | No | optional: country or state name, e.g. 'Brazil', 'Ottoman Empire', 'Soviet Union'. Omit for every state |