European Parliament MCP Server API - v1.0.1
    Preparing search index...

    Function handleGetVotingRecords

    • 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.

      Parameters

      Returns Promise<ToolResult>

      MCP tool result containing a paginated list of voting records with vote counts and results

      • If args fails schema validation (e.g., missing required fields or invalid format)
      • If the European Parliament API is unreachable or returns an error response
      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
      • Input is validated with Zod before any API call.
      • Personal data in responses is minimised per GDPR Article 5(1)(c).
      • All requests are rate-limited and audit-logged per ISMS Policy AU-002.

      0.8.0