EU Parliament Monitor — API Documentation - v0.8.39
    Preparing search index...

    Function isFeedUnavailable

    • Detect whether an MCP feed result represents an "unavailable" response, covering the two shapes historically emitted by the EP MCP server.

      1. Uniform envelope (all feeds as of european-parliament-mcp-server@1.2.10) — {status:"unavailable", items:[], generatedAt:"..."} established by Hack23/European-Parliament-MCP-Server#301 and extended to get_events_feed/get_procedures_feed by Hack23/European-Parliament-MCP-Server#380 (which closed #378).
      2. Legacy raw upstream 404 shape (historically emitted pre-v1.2.10 by get_events_feed / get_procedures_feed, fixed upstream in PR #380) — {"@id":"https://data.europarl.europa.eu/eli/dl/...","error":"404 N..."}. Retained purely as defense-in-depth for older pinned server versions or any future regression of #378, so such payloads do not silently poison downstream analysis.

      Returning true from this helper lets callers treat both shapes as "known-empty" rather than "success with garbage payload".

      Parameters

      Returns boolean

      true when the payload matches either unavailable envelope