List or search roll-call votes
list_votesList the roll-call votes (scrutins publics) of one chamber, newest first by default: National Assembly (default), Senate or European Parliament. Returns each vote's id, title, date, outcome and totals. Use it to find 'the vote on X' (search by title with 'q'), then open it with get_vote for the tallies per political group. Paginated.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_votes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Search terms, matched against the title. | |
| to | No | Latest date (inclusive), ISO yyyy-MM-dd. | |
| from | No | Earliest date (inclusive), ISO yyyy-MM-dd. | |
| kind | No | Restrict to these kinds of vote, comma-separated. | |
| page | No | Page number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size. | |
| size | No | Items per page (default 10, maximum 25). | |
| sort | No | Sort criterion. | DATE |
| order | No | Sort direction. | DESC |
| chamber | No | Chamber to list. NATIONAL_ASSEMBLY, SENATE or EUROPEAN_PARLIAMENT. | NATIONAL_ASSEMBLY |
| outcome | No | Restrict to adopted or rejected votes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, starting at 0. | |
| size | No | Number of items requested per page. | |
| items | No | The items of this page. | |
| truncated | No | Present when this answer was shortened to stay short: says what was cut and how to get the rest. | |
| totalItems | No | Total number of items matching, across all pages. For a text search ('q' present) the count is capped. |