Explore plenary sittings, decisions, and voters
euparl_get_plenary_votesDiscover sittings with mode sittings and year. Mode vote_items lists what a sitting voted on: its PLENARY_VOTE_RESULTS vote items in published order, each with its title label, based-on documents, procedures, recording documents and decision_count, from one sitting-wide read; pass a vote_item_id to decisions mode for its decisions. Vote items on sittings before 2024 publish no decision links, so decision_count is absent there. Default decisions pages compact summaries with labels, separate decided-on, part-of and recording document relations, and vote items for sitting_id. Vote items, decisions and voters return the requested whole-item count or remaining rows without an output-size cap. Optional label_contains, in decisions or vote_items, selects a literal selected-language substring of decision labels (report citations, amendments) or vote item titles, ignoring case, repeated whitespace and dash style without altering published text or establishing a final vote; in a decision label a document_ids entry is cited with its prefix and term joined and the year after the number, so A-9-2022-0116 is A9-0116/2022 and the joint motion RC-9-2022-0257 is RC-B9-0257/2022. Optional document_id filters decisions before paging by exact document identity or hyphen-boundary descendant; optional vote_item_id, such as a procedure's PLENARY_VOTE_RESULTS event, selects every decision of that vote item. Mode decision requires decision_id and returns one rich record with reference text and commentary; it rejects nondefault paging and snapshot. Optional decisions or decision mep_id returns independent recorded and intended positions with publication availability, without a roster lookup; empty positions do not prove absence from the vote. Mode voters requires decision_id and one position, paging recorded and intended voters independently. Missing arrays succeed with available false; published empty arrays have available true. Optional resolve_names requires explicit roster_term and joins only published names from that complete term roster, never voting-date affiliations or current-roster substitutes. Some IDs may remain unresolved. Continue local vote items, decisions or voters with page.next_offset and snapshot; restart at offset 0 without snapshot after snapshot_changed. Missing sitting vote items or decisions succeed empty; absent selected decision fails decision_not_found.
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": "euparl_get_plenary_votes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Default decisions returns compact summaries; sittings discovers by year, vote_items lists the vote items of sitting_id, decision returns one rich record, voters pages one position. | decisions |
| year | No | Four-digit year, required only for sittings and forbidden in other modes. | |
| limit | No | Whole items requested; default 20. Whole-acquired local collections return the requested count or remaining rows, without an output-size cap. Bounded-mode acquisition limits: 1000 sittings. Larger bounded-mode limits normalize with a notice. Values above the safe-integer range normalize to 9007199254740991; search windows and bounded modes may narrow further. | |
| mep_id | No | Decisions or decision member lookup: canonical numeric ID, person/ prefix or exact public person URI. Uses published arrays without a roster join; empty positions do not prove absence from the vote. | |
| offset | No | Zero-based collection offset; default 0. | |
| language | No | Supported EU ISO-639-1 language, case-insensitive; default en; source text is never translated. | |
| position | No | Required only for voters: favor, against, abstention, intended_favor, intended_against, or intended_abstention. | |
| snapshot | No | Returned vote-item, decisions or voter-position snapshot; required for local offset above 0, optional at offset 0; forbidden for sittings and decision. | |
| sitting_id | No | Required outside sittings: real YYYY-MM-DD date, MTG-PL-YYYY-MM-DD, known event prefix, or exact public event URI. | |
| decision_id | No | Required for decision and voters: exact returned canonical decision ID, known eli/dl/event/ prefix, or exact public event URI; forbidden for sittings, vote_items and decisions. | |
| document_id | No | Decisions-only document filter: canonical ID, eli/dl/doc/ prefix or exact public URI, in any letter case, or a report, adopted-text, motion or agenda citation such as A9-0188/2023, P9_A(2023)0188, T9-0138/2024, B9-0163/2024 (the B- motion) or RC-B9-0163/2024. Matches decided-on, part-of or recording relations by exact ID or hyphen-boundary descendant before paging. | |
| roster_term | No | Explicit parliamentary term 0–10 containing the sitting; required with resolve_names true, forbidden otherwise. No term is inferred from dates. | |
| vote_item_id | No | Decisions-only vote item filter: canonical MTG-PL-YYYY-MM-DD-VOT-ITM- ID, eli/dl/event/ prefix or exact public event URI, such as a procedure's PLENARY_VOTE_RESULTS event, a vote_items row or a returned vote_item_ids entry. Selects every decision of that vote item before paging; its date must match sitting_id. | |
| resolve_names | No | Default false retains IDs only; true is voters-only and requires roster_term for complete names-only roster resolution. | |
| label_contains | No | Decisions or vote_items literal substring of the selected-language label, ignoring case, repeated whitespace and dash style, applied before paging. Decision labels carry report citations and amendment numbers and combine with document_id and vote_item_id; in a decision label a document_ids entry is cited with its prefix and term joined and the year after the number, so A-9-2022-0116 is A9-0116/2022 and the joint motion RC-9-2022-0257 is RC-B9-0257/2022. Vote item labels are titles such as Artificial Intelligence Act. Matching text does not establish a final vote. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | Effective whole-item page limit. | |
| mode | No | Sitting discovery, sitting vote-item page, compact decision page, one rich decision, or one voter-position page. | |
| page | No | Selected sitting, vote-item, compact decision, or voter-position page; absent for a rich decision. Local pages retain the requested count or remaining rows without a character budget; next_offset resumes at the first item left out. | |
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Whole items shown on this partial page. | |
| notice | No | Publication, language fallback, empty-result or continuation guidance. | |
| voters | No | Independent page for one recorded or intended position, preserving published ID order. | |
| decision | No | Complete selected rich decision, present only in decision mode. | |
| position | No | Selected recorded or intended position in voters mode. | |
| sittings | No | Sitting discovery page, present only in sittings mode. | |
| available | No | Whether the selected source array was published, including a published empty array. | |
| decisions | No | Compact whole-decision page with selected-language labels, separate decided-on, part-of and recording document relations, and vote items. | |
| truncated | No | True when this page returns only part of the selected collection. | |
| sitting_id | No | Normalized selected sitting identifier; absent in sitting discovery. | |
| totalCount | No | Exact count only when published or computed over a complete collection. | |
| vote_items | No | Whole vote-item page of the sitting in published order, present only in vote_items mode; roll-call, split and separate-vote requests are left out. | |
| decision_id | No | Normalized selected decision identifier; present in decision and voters modes. | |
| appliedFilters | No | Actual normalized retrieval scope and filters. | |
| voter_resolution | No | Names-only provenance and complete-position resolution counts; names do not prove spelling or affiliation on the voting date. |