approval
Determine the election winner using approval voting. Each approved candidate accumulates the ballot's weight; the candidate with the highest total weight is selected.
Instructions
Approval voting: each candidate scores the total weight approving it.
Consumes approval ballots ({kind: "approval", approved: [...]}). An empty
approval set is valid and adds nothing. Errors if any ballot is not approval.
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": {
"profile": "<profile>"
},
"name": "approval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| profile | Yes | ||
| tie_break | No | lexicographic |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| rule | Yes | ||
| scores | No | ||
| winner | Yes | ||
| ranking | No | ||
| winners | Yes | ||
| tie_break | No | lexicographic |