swing
Calculates vote-share change per seat for a coalition or party across two elections, with renamed seats listed separately.
Instructions
Vote share per seat for one coalition or party in two elections, and the change. Seats whose name changed are listed apart.
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_from": "<election_from>",
"election_to": "<election_to>",
"group": "<group>"
},
"name": "swing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | coalition | |
| group | Yes | ||
| state | No | ||
| election_to | Yes | ||
| election_from | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||