European Parliament MCP Server API - v1.0.1
    Preparing search index...
    • Handle the get_meeting_plenary_session_document_items MCP tool request.

      Retrieves the individual agenda-item-level documents linked to a specific EP plenary sitting by calling GET /meetings/{sitting-id}/plenary-session-document-items via epClient. The raw API response is normalised into a standardised ToolResult using buildToolResponse.

      Parameters

      • args: unknown

        Raw tool arguments provided by the MCP client. Must conform to GetMeetingPlenarySessionDocumentItemsSchema:

        • sittingId (string, required): EP plenary sitting identifier.
        • limit (number, optional): Maximum results to return (1–100, default 50).
        • offset (number, optional): Pagination offset (default 0).

      Returns Promise<ToolResult>

      A promise that resolves to an MCP ToolResult containing the plenary session document items for the requested sitting.

      If args fails GetMeetingPlenarySessionDocumentItemsSchema validation (e.g. missing required sittingId or out-of-range limit).

      If sittingId contains path-traversal characters (., \, ?, #) — the underlying client throws an APIError(400).

      If the European Parliament API is unreachable or returns an error response.

      const result = await handleGetMeetingPlenarySessionDocumentItems({
      sittingId: 'PV-9-2024-04-22',
      limit: 50,
      offset: 0
      });
      // Returns individual agenda-item documents for plenary sitting PV-9-2024-04-22

      Input is validated with Zod before any API call. sittingId is checked against path-traversal characters before URL construction. 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.

      1.0.0