{
  "$comment": "Machine-readable pricing for Mirai Insights Data. Generated from the live /v1/tools on 2026-12-01; the live endpoint is authoritative.",
  "schema_version": "1.0",
  "service": "Mirai Insights Data",
  "publisher": {
    "name": "Mirai Insights (Pty) Ltd",
    "country": "ZA",
    "contact": "info@mirai-insights.com",
    "url": "https://data.mirai-insights.com"
  },
  "updated": "2026-12-01",
  "currency": "ZAR",
  "prices_include_vat": "not stated",
  "endpoints": {
    "mcp": "https://mcp.mirai-insights.com/mcp",
    "mcp_registry_name": "com.mirai-insights/sa-public-data",
    "openapi": "https://mcp.mirai-insights.com/openapi.json",
    "tools": "https://mcp.mirai-insights.com/v1/tools",
    "signup": "https://data.mirai-insights.com/get-started.html",
    "signup_api": "https://mcp.mirai-insights.com/v1/signup"
  },
  "tiers": [
    {
      "id": "free",
      "price_zar": 0,
      "auth": "none",
      "includes": "discovery, current values, release briefs"
    },
    {
      "id": "pay_as_you_go",
      "auth": "api_key",
      "header": "X-API-Key",
      "billing": "prepaid ZAR wallet, debited per call; refunded if the upstream source fails after charging",
      "price_range_zar_per_call": [
        1,
        5
      ],
      "starter_credit_zar": 50,
      "starter_credit_note": "granted on self-serve sign-up; amount may change"
    }
  ],
  "payment_methods": [
    {
      "id": "payfast_wallet_topup",
      "status": "sandbox",
      "provider": "PayFast",
      "currency": "ZAR",
      "min_zar": 50,
      "max_zar": 20000,
      "suggested_amounts_zar": [
        100,
        250,
        500,
        1000
      ],
      "endpoint": "https://mcp.mirai-insights.com/v1/billing/topup",
      "note": "Checkout runs in PayFast sandbox (test mode) until the live switch."
    },
    {
      "id": "x402",
      "status": "coming_soon",
      "asset": "USDC",
      "network": "Base (eip155:8453)",
      "note": "Per-call payment without an API key; price is the ZAR price converted to USD at the SARB rate."
    }
  ],
  "errors": {
    "401": "priced tool called without an API key",
    "402": "wallet balance too low; top up"
  },
  "tools": [
    {
      "name": "muni_find",
      "group": "municipal",
      "description": "Find municipalities by name or demarcation code (e.g. 'Cape Town', 'CPT', 'WC023').",
      "pricing": {
        "model": "free",
        "price_zar": 0
      },
      "auth_required": false,
      "rest": "https://mcp.mirai-insights.com/v1/tools/muni_find"
    },
    {
      "name": "muni_audit_outcomes",
      "group": "municipal",
      "description": "Auditor-General audit opinions for a municipality, newest first, with report links.",
      "pricing": {
        "model": "free",
        "price_zar": 0
      },
      "auth_required": false,
      "rest": "https://mcp.mirai-insights.com/v1/tools/muni_audit_outcomes"
    },
    {
      "name": "muni_uifw_expenditure",
      "group": "municipal",
      "description": "Unauthorised, irregular, fruitless & wasteful expenditure (ZAR) by financial year. years=1 (latest) is free; years>1 is priced as history.",
      "pricing": {
        "model": "conditional",
        "free_when": "years=1 (latest year) free",
        "price_zar_otherwise": 1.0,
        "priced_when": "years>1 priced as history"
      },
      "auth_required": false,
      "rest": "https://mcp.mirai-insights.com/v1/tools/muni_uifw_expenditure"
    },
    {
      "name": "muni_financial_position",
      "group": "municipal",
      "description": "Statement of financial position (balance sheet) headline items + current ratio. amount_type: AUDA audited (default), ORGB original budget, ADJB adjusted budget.",
      "pricing": {
        "model": "free",
        "price_zar": 0
      },
      "auth_required": false,
      "rest": "https://mcp.mirai-insights.com/v1/tools/muni_financial_position"
    },
    {
      "name": "muni_data_coverage",
      "group": "municipal",
      "description": "Which financial years and in-year periods National Treasury has published (discovery).",
      "pricing": {
        "model": "free",
        "price_zar": 0
      },
      "auth_required": false,
      "rest": "https://mcp.mirai-insights.com/v1/tools/muni_data_coverage"
    },
    {
      "name": "tenders_search",
      "group": "etenders",
      "description": "Search eTenders OCDS releases by keyword, buyer and release date (default: last 7 days). Reads Mirai's snapshot store (filled by the scheduled pull) plus a live pull of the most recent 2 days. Windows up to 7 days are free; wider windows are priced as history.",
      "pricing": {
        "model": "conditional",
        "free_when": "date windows up to 7 days free",
        "price_zar_otherwise": 1.0,
        "priced_when": "wider windows priced as history"
      },
      "auth_required": false,
      "rest": "https://mcp.mirai-insights.com/v1/tools/tenders_search"
    },
    {
      "name": "tenders_closing_soon",
      "group": "etenders",
      "description": "Open tenders closing within the next N days, soonest first (snapshot store + live pull of last 2 days).",
      "pricing": {
        "model": "free",
        "price_zar": 0
      },
      "auth_required": false,
      "rest": "https://mcp.mirai-insights.com/v1/tools/tenders_closing_soon"
    },
    {
      "name": "tenders_get_release",
      "group": "etenders",
      "description": "Fetch one OCDS contracting process by ocid (e.g. 'ocds-9t57fa-170002'), personal contact data removed.",
      "pricing": {
        "model": "free",
        "price_zar": 0
      },
      "auth_required": false,
      "rest": "https://mcp.mirai-insights.com/v1/tools/tenders_get_release"
    },
    {
      "name": "awards_search",
      "group": "etenders",
      "description": "Search contract awards (supplier, value) across the most recent N contracting processes, plus everything already in Mirai's snapshot store. Priced (many upstream calls).",
      "pricing": {
        "model": "per_call",
        "price_zar": 2.0
      },
      "auth_required": true,
      "rest": "https://mcp.mirai-insights.com/v1/tools/awards_search"
    },
    {
      "name": "sarb_key_rates",
      "group": "sarb",
      "description": "Headline SA rates: repo, prime, JIBAR 3m, ZARONIA, 91-day T-bill, R2030 yield, CPI, USD/ZAR.",
      "pricing": {
        "model": "free",
        "price_zar": 0
      },
      "auth_required": false,
      "rest": "https://mcp.mirai-insights.com/v1/tools/sarb_key_rates"
    },
    {
      "name": "sarb_market_rates",
      "group": "sarb",
      "description": "All SARB current market rates (money market, bonds, FX, gold), optionally filtered by section.",
      "pricing": {
        "model": "free",
        "price_zar": 0
      },
      "auth_required": false,
      "rest": "https://mcp.mirai-insights.com/v1/tools/sarb_market_rates"
    },
    {
      "name": "sarb_exchange_rates",
      "group": "sarb",
      "description": "Latest SARB daily exchange rates against the rand.",
      "pricing": {
        "model": "free",
        "price_zar": 0
      },
      "auth_required": false,
      "rest": "https://mcp.mirai-insights.com/v1/tools/sarb_exchange_rates"
    },
    {
      "name": "sarb_series_history",
      "group": "sarb",
      "description": "Daily/monthly history for a SARB series ('repo','prime','jibar_3m','cpi','usdzar' or a SARB code). Default window: last 365 days. Priced as history.",
      "pricing": {
        "model": "per_call",
        "price_zar": 1.0
      },
      "auth_required": true,
      "rest": "https://mcp.mirai-insights.com/v1/tools/sarb_series_history"
    },
    {
      "name": "sarb_rate_changes",
      "group": "sarb",
      "description": "Every change in a rate series since a date (e.g. MPC repo decisions), with basis-point moves.",
      "pricing": {
        "model": "per_call",
        "price_zar": 1.0
      },
      "auth_required": true,
      "rest": "https://mcp.mirai-insights.com/v1/tools/sarb_rate_changes"
    },
    {
      "name": "joined_municipality_profile",
      "group": "joined",
      "description": "One-call municipal profile: identity, latest audit opinion, UIFW expenditure (3 yrs), balance-sheet headline, recent eTenders activity by that municipality as buyer, and the prime rate as a cost-of-borrowing reference. Priced as a joined query.",
      "pricing": {
        "model": "per_call",
        "price_zar": 5.0
      },
      "auth_required": true,
      "rest": "https://mcp.mirai-insights.com/v1/tools/joined_municipality_profile"
    },
    {
      "name": "briefs_list",
      "group": "platform",
      "description": "Published Mirai release briefs (free).",
      "pricing": {
        "model": "free",
        "price_zar": 0
      },
      "auth_required": false,
      "rest": "https://mcp.mirai-insights.com/v1/tools/briefs_list"
    },
    {
      "name": "brief_get",
      "group": "platform",
      "description": "Full markdown of one release brief (free).",
      "pricing": {
        "model": "free",
        "price_zar": 0
      },
      "auth_required": false,
      "rest": "https://mcp.mirai-insights.com/v1/tools/brief_get"
    },
    {
      "name": "snapshot_history",
      "group": "platform",
      "description": "Versioned snapshots Mirai has stored for a dataset (serves history even if the source overwrites it).",
      "pricing": {
        "model": "per_call",
        "price_zar": 1.0
      },
      "auth_required": true,
      "rest": "https://mcp.mirai-insights.com/v1/tools/snapshot_history"
    }
  ],
  "usage_licence": {
    "query_and_answer_use": "permitted",
    "ai_training": "prohibited",
    "tdm_reservation": 1,
    "notice": "No AI/ML training, fine-tuning, evaluation or training-dataset building. TDM rights reserved (EU DSM Art. 4(3)).",
    "terms": "https://data.mirai-insights.com/legal/terms.html#ai-training",
    "tdmrep": "https://data.mirai-insights.com/.well-known/tdmrep.json"
  }
}