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

    Interface MetricResult<T>

    Wrapper for a single analysis metric that explicitly communicates data availability alongside the computed value.

    When availability is 'UNAVAILABLE', value is always null and confidence should typically be 'LOW' or 'NONE' to signal that no meaningful confidence can be assigned. The exact value depends on whether the containing tool's OSINT output schema supports 'NONE'.

    interface MetricResult<T = number> {
        availability: DataAvailability;
        confidence: "HIGH" | "MEDIUM" | "LOW" | "NONE";
        value: T | null;
        reason?: string;
        source?: string;
    }

    Type Parameters

    • T = number

      The type of the metric value (defaults to number).

    Index

    Properties

    availability: DataAvailability

    Availability status of the underlying EP API data.

    confidence: "HIGH" | "MEDIUM" | "LOW" | "NONE"

    Confidence in the computed value given the available data.

    value: T | null

    Computed metric value, or null when unavailable.

    reason?: string

    Explanation of why the data is unavailable or estimated (optional).

    source?: string

    Human-readable data source description (optional).