Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    • Persist a generic MCP tool response. Supports any MCP server (riksdag, SCB, World Bank, etc.). Responses are stored under: analysis/data/mcp-responses/{server}/{tool}/{id}.json

      The response data is stored as-is (no metadata injection). A sidecar .meta.json tracks provenance.

      Parameters

      • call: MCPToolCall

        Description of the MCP tool call

      • response: unknown

        Raw response data from the MCP tool

      • id: string

        Unique identifier for this response (e.g. dok_id, table_id, country code)

      • dataRoot: string = DATA_ROOT

        Override for the data root directory (for testing)

      • Optionalriksmote: string

      Returns string

      The absolute path where the response was written.