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

    Function handleGetAdoptedTexts

    • Handles the get_adopted_texts MCP tool request.

      Retrieves European Parliament adopted texts, including legislative resolutions, first-reading positions, and non-legislative resolutions. Supports single document lookup by docId or a paginated list optionally filtered by year.

      Parameters

      Returns Promise<ToolResult>

      MCP tool result containing either a single adopted text or a paginated list of adopted texts

      • 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
      // Single adopted text lookup
      const result = await handleGetAdoptedTexts({ docId: 'P9-TA(2024)0001' });
      // Returns the full record for the specified adopted text

      // List adopted texts from 2024
      const list = await handleGetAdoptedTexts({ year: 2024, limit: 50 });
      // Returns up to 50 adopted texts from 2024
      • 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

      • getAdoptedTextsToolMetadata for MCP schema registration
      • handleGetPlenarySessionDocumentItems for retrieving in-session document items