# Function comparativeIntelligence

- comparativeIntelligence(
  params: {
  dimensions: ("committee" | "attendance" | "voting" | "legislative")[];
  mepIds: number[];
  },
  ): Promise<ToolResult>

  Build a comparative-intelligence profile across 2-10 MEPs.

  Implementation of the MCP `comparative_intelligence` tool. Fetches each MEP's profile in parallel, builds per-dimension scores, computes rankings and a cosine-similarity correlation matrix, detects outliers (z-score ≥ 1.5) and groups MEPs into political-group + performance-tier clusters.

  #### Parameters

  - params: {
    dimensions: ("committee" | "attendance" | "voting" | "legislative")[];
    mepIds: number[];
    }

    Validated tool parameters (see ComparativeIntelligenceSchema)

  #### Returns Promise<ToolResult>

  A ToolResult containing the comparative analysis or a structured error response on failure

  - Defined in tools/comparativeIntelligence.ts:798