Compare Elections
compare_electionsCompare two Turkish elections to see changes in vote share, votes, and turnout across Turkey, provinces, districts, or ranked units, including party lineage notes.
Instructions
Compare two elections (A = earlier, B = later): change in vote share (percentage POINTS, B minus A), votes and turnout. With no province/district/level it compares Turkey as a whole (all parties). With province it compares that province; with province+district one district. With level='il' (or level='ilce', optionally with province) it returns a table of units sorted by the change in 'party' (or by turnout change if no party is given), biggest rise first (order='desc'). Party and candidate names are matched by name across elections; a documented lineage note is attached when a party did not run under its own name (e.g. HDP 2018 vs Yesil Sol Parti 2023); votes are never merged. Turkey-wide district tables need the one-time district download for both elections (prepare_data). RAW YSK API figures.
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": {
"election_a": "<election_a>",
"election_b": "<election_b>"
},
"name": "compare_elections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | ||
| order | No | desc | |
| party | No | ||
| top_n | No | ||
| district | No | ||
| province | No | ||
| election_a | Yes | ||
| election_b | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||