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

    Function handleGetCommitteeDocuments

    • Handles the get_committee_documents MCP tool request.

      Retrieves European Parliament committee documents, supporting single document lookup by docId or a paginated list optionally filtered by year.

      Parameters

      Returns Promise<ToolResult>

      MCP tool result containing either a single committee document or a paginated list of documents

      • 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 document lookup
      const result = await handleGetCommitteeDocuments({ docId: 'A9-0001/2024' });
      // Returns the full record for the specified committee document

      // List documents filtered by year
      const list = await handleGetCommitteeDocuments({ year: 2024, limit: 25 });
      // Returns up to 25 committee documents 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