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

    Function handleGetMEPDeclarations

    • Handles the get_mep_declarations MCP tool request.

      Retrieves MEP declarations of financial interests filed under the Rules of Procedure. Supports both single-declaration lookup by document ID and list retrieval with optional year filtering. Financial declaration data enables conflict-of-interest detection, lobbying pattern analysis, and transparency assessments.

      Parameters

      Returns Promise<ToolResult>

      MCP tool result containing either a single MEP financial declaration document or a paginated list of declarations, optionally filtered by filing year

      • If args fails schema validation (e.g., invalid year or limit out of range 1–100)
      • If the European Parliament API is unreachable or returns an error response
      // List declarations for a specific year
      const result = await handleGetMEPDeclarations({ year: 2024, limit: 20 });
      // Returns up to 20 financial declarations filed in 2024

      // Fetch a single declaration by document ID
      const single = await handleGetMEPDeclarations({ docId: 'DECL-2024-001' });
      // Returns the full declaration document
      • Input is validated with Zod before any API call.
      • Access to financial declarations (personal data) is audit-logged per GDPR Art. 6(1)(e) and ISMS Policy AU-002. Data minimisation applied per GDPR Article 5(1)(c).

      0.8.0