# Function handleGetLatestVotes

- handleGetLatestVotes(args: unknown): Promise<ToolResult>

  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

  #### Example

      // 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
      });

  - Defined in tools/getLatestVotes.ts:109