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

    Function handleGetLatestVotes

    • Handles the get_latest_votes MCP tool request.

      Fetches the latest plenary vote data from the EP DOCEO XML system, providing near-real-time access to roll-call votes and vote results. This data source is fresher than the EP Open Data API which has a multi-week publication delay.

      Parameters

      • args: unknown

        Raw tool arguments, validated against GetLatestVotesSchema

      Returns Promise<ToolResult>

      MCP tool result with latest vote records

      // Get votes from the most recent plenary week
      const result = await handleGetLatestVotes({});

      // Get votes for a specific date
      const result = await handleGetLatestVotes({ date: '2026-04-27' });

      // Get a specific plenary week without individual MEP positions
      const result = await handleGetLatestVotes({
      weekStart: '2026-04-27',
      includeIndividualVotes: false
      });