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

      Scores the legislative effectiveness of an MEP or committee by computing productivity (reports authored, amendments tabled), quality (amendment success rate, attendance), and impact (voting influence, rapporteurships, committee coverage) sub-scores, then aggregates them into an overall effectiveness rating with peer-benchmarking data.

      Parameters

      Returns Promise<ToolResult>

      MCP tool result containing a LegislativeEffectivenessAnalysis object with metrics, scores, computed attributes (percentile, output per month), benchmarks, confidence level, and methodology note

      • If args fails schema validation (e.g., missing required subjectType or subjectId, invalid subjectType value)
      • If the European Parliament API is unreachable or returns an error response
      // Analyse a specific MEP
      const mepResult = await handleAnalyzeLegislativeEffectiveness({
      subjectType: 'MEP',
      subjectId: 'MEP-124810',
      dateFrom: '2024-01-01',
      dateTo: '2024-12-31'
      });
      // Returns productivity/quality/impact scores and effectiveness rank for MEP-124810

      // Analyse a committee
      const committeeResult = await handleAnalyzeLegislativeEffectiveness({
      subjectType: 'COMMITTEE',
      subjectId: 'ENVI'
      });
      // Returns legislative effectiveness scores for the ENVI committee
      • 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. Internal errors are wrapped before propagation to avoid leaking API details.

      0.8.0