Raw tool arguments, validated against GetVotingRecordsSchema
MCP tool result containing a paginated list of voting records with vote counts and results
args fails schema validation (e.g., missing required fields or invalid format)const result = await handleGetVotingRecords({
sessionId: 'PLENARY-2024-01',
topic: 'Climate Change',
limit: 20
});
// Returns voting records for the January 2024 plenary session on climate topics
Handles the get_voting_records MCP tool request.
Retrieves voting records from European Parliament plenary sessions, supporting filtering by session, MEP, topic, and date range. Returns vote tallies (for/against/abstain), final results, and optionally individual MEP votes.