Rank Districts
rank_districtsRank districts by party vote share, total votes, turnout, or vote-share change versus another election within a province or across Turkey using YSK data.
Instructions
Rank districts (ilce) by a party's vote share ('pct'), votes ('votes'), turnout ('turnout', no party needed) or the change in vote share versus another election ('change_vs', needs compare_to; change = election minus compare_to, percentage points). Within one province (province given) or across Turkey (province omitted; needs the one-time district download for the election, see prepare_data). Districts are matched across elections by (province, district name); unmatched ones are counted in 'unmatched'. 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": "<election>"
},
"name": "rank_districts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | desc | |
| party | No | ||
| top_n | No | ||
| metric | No | pct | |
| election | Yes | ||
| province | No | ||
| compare_to | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||