D'Hondt seat calculator
dhondt_seatsShares out seats with the D'Hondt method as in Spain's general elections (3% threshold over valid votes, blank votes count as valid). Give a Spanish province (its 2026 Congress seats are used) or a number of seats, and the votes per party. Source: https://borbur.net/tools/dhondt-calculator/
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": {
"parties": "<parties>"
},
"name": "dhondt_seats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blank | No | Blank votes (default 0) | |
| seats | No | Seats to share out (if no province) | |
| parties | Yes | List of {name, votes} | |
| province | No | Spanish constituency, e.g. Madrid (optional) | |
| threshold | No | Threshold in % (default 3) |