# Function earlyWarningSystem

- earlyWarningSystem(
  params: {
  focusArea: "attendance" | "all" | "coalitions";
  sensitivity: "low" | "medium" | "high";
  },
  ): Promise<ToolResult>

  Compute an early-warning assessment of EP political stability.

  Implementation of the MCP `early_warning_system` tool. Analyses current group composition for fragmentation, dominant-group risks, minority quorum risks and coalition viability, derives severity-tagged warnings, and produces an overall stability score (0-100) and risk level.

  #### Parameters

  - params: {
    focusArea: "attendance" | "all" | "coalitions";
    sensitivity: "low" | "medium" | "high";
    }

    Validated tool parameters (see EarlyWarningSystemSchema)

  #### Returns Promise<ToolResult>

  A ToolResult containing the warning report or a structured error response on failure

  - Defined in tools/earlyWarningSystem.ts:323