marginal_seats
Find the closest election contests ranked by smallest majority, showing winner and runner-up. Filter results by election, state, or maximum majority to identify competitive seats.
Instructions
Closest contests in an election, smallest majority first, with winner and runner-up.
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": "marginal_seats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| state | No | ||
| election | Yes | ||
| max_majority | No | ||
| max_majority_perc | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||