{
  "product": "CivicSignal",
  "description": "Situational awareness for Canada. One call returns what is in the news about a topic, how coverage tone is moving, which statutes are in force, what bills are moving, and what Parliament has said — each cited to its official source.",
  "baseUrl": "https://api.civicsignal.chesterhillsolutions.ca",
  "version": "0.1.0",
  "pricing": {
    "model": "metered",
    "freeMonthlyAllowance": 1000,
    "unitPriceUsd": 0.005,
    "billing": "prepaid credits; no subscription",
    "note": "Free allowance resets each UTC calendar month and is shared across the workspace. Errors never count. Failed lookups become account credit."
  },
  "encoder": {
    "model": "embeddinggemma-2-270m",
    "artefact": "litert-community/embeddinggemma-2-text-270m-litert-lm",
    "file": "embeddinggemma-2-text-270m.litertlm",
    "dimensions": 768,
    "queryTemplate": "task: search result | query: {query}",
    "documentTemplate": "title: {title} | text: {content}",
    "matryoshkaDimensions": [
      128,
      256,
      512,
      768
    ],
    "normalised": true
  },
  "coverage": [
    {
      "corpusId": "statutes-canada",
      "title": "Federal statutes and regulations",
      "publisher": "Government of Canada (Justice Laws Website)",
      "licence": "Open Government Licence - Canada",
      "licenceUrl": "https://open.canada.ca/en/open-government-licence-canada",
      "redistribution": "open",
      "attribution": "Source: Justice Laws Website, Government of Canada. Reproduced under the Open Government Licence - Canada.",
      "conditions": [
        "This is not an official version of the law.",
        "Exercise due diligence in ensuring the accuracy of the materials reproduced."
      ]
    },
    {
      "corpusId": "statutes-ontario",
      "title": "Ontario statutes and regulations",
      "publisher": "Government of Ontario (e-Laws)",
      "licence": "Crown copyright — reproduction permitted",
      "licenceUrl": "https://www.ontario.ca/laws",
      "redistribution": "open",
      "attribution": "Source: e-Laws, Government of Ontario. Unofficial version of Government of Ontario legal materials.",
      "conditions": [
        "This is not an official version of the law.",
        "Acknowledge Crown copyright and the source."
      ]
    },
    {
      "corpusId": "hansard-federal",
      "title": "House of Commons debates (Hansard), 2006–present",
      "publisher": "House of Commons of Canada",
      "licence": "Crown copyright (federal) — non-commercial reproduction with attribution",
      "licenceUrl": "https://www.canada.ca/en/transparency/terms.html",
      "redistribution": "cite-only",
      "attribution": "Source: Debates (Hansard), House of Commons of Canada. © His Majesty the King in Right of Canada. Crown copyright.",
      "conditions": [
        "Quoted as excerpts with a citation to the official text; the corpus is not republished.",
        "Excerpts are short and attributed; each links to the official Hansard record."
      ]
    },
    {
      "corpusId": "hansard-provincial",
      "title": "Provincial legislative debates",
      "publisher": "Various provincial legislatures",
      "licence": "Crown copyright (provincial) — non-commercial",
      "licenceUrl": "https://www.canada.ca/en/transparency/terms.html",
      "redistribution": "cite-only",
      "attribution": "Source: Legislative debates of the originating legislature. Crown copyright; reproduced as cited excerpts.",
      "conditions": [
        "Quoted as excerpts with a citation to the official text; the corpus is not republished.",
        "Credit the originating legislative assembly."
      ]
    },
    {
      "corpusId": "news-canada",
      "title": "Canadian political news (RSS and watched sources)",
      "publisher": "Various Canadian publishers",
      "licence": "Per-source publisher terms",
      "licenceUrl": "https://www.policorner.wire/",
      "redistribution": "metadata-only",
      "attribution": "Source: the originating publisher, via the CivicSignal wire. Headlines link out.",
      "conditions": [
        "Headline, outlet, timestamp and link only — article text is not redistributed.",
        "Each item links to the publisher."
      ]
    },
    {
      "corpusId": "gdelt",
      "title": "GDELT Project global press monitor",
      "publisher": "The GDELT Project",
      "licence": "GDELT Project terms — attribution required",
      "licenceUrl": "https://www.gdeltproject.org/about.html",
      "redistribution": "metadata-only",
      "attribution": "Powered by the GDELT Project. Headlines and metadata only; no article text.",
      "conditions": [
        "Article text is never provided by GDELT and is never reproduced here."
      ]
    },
    {
      "corpusId": "bills-canada",
      "title": "Federal bills and their status",
      "publisher": "Parliament of Canada",
      "licence": "Crown copyright (federal)",
      "licenceUrl": "https://www.canada.ca/en/transparency/terms.html",
      "redistribution": "metadata-only",
      "attribution": "Source: Parliament of Canada. Bill status and identifiers are facts; bill text is not reproduced.",
      "conditions": [
        "Bill status, sponsor, identifiers and dates are reported.",
        "Bill text links to the official record and is not republished."
      ]
    },
    {
      "corpusId": "election-results",
      "title": "Federal and provincial election results by riding and polling division",
      "publisher": "Elections Canada; provincial election authorities",
      "licence": "Open Government Licence - Canada",
      "licenceUrl": "https://open.canada.ca/en/open-government-licence-canada",
      "redistribution": "open",
      "attribution": "Source: Elections Canada and provincial election authorities. OGL Canada.",
      "conditions": []
    }
  ],
  "auth": {
    "serverKeys": "Authorization: Bearer sk_…",
    "browserKeys": "Authorization: Bearer pk_…",
    "oauth": "https://api.civicsignal.chesterhillsolutions.ca/auth.md",
    "header": "Authorization"
  },
  "endpoints": [
    {
      "path": "/api/brief",
      "description": "The join: news, tone, statutes, bills and debate for one topic. Takes an optional `scope`."
    },
    {
      "path": "/api/statutes",
      "description": "Statutes and regulations in force, with section text."
    },
    {
      "path": "/api/news",
      "description": "News items and the tone series for a topic."
    },
    {
      "path": "/api/bills",
      "description": "Bills and their stage."
    },
    {
      "path": "/api/debates",
      "description": "Cited debate passages."
    }
  ],
  "scopes": [
    {
      "parameter": "scope",
      "format": "<type>[:<value>]",
      "values": [
        "topic",
        "riding:35047",
        "jurisdiction:ON",
        "municipality:Burlington,Ontario",
        "region:goldenhorseshoe"
      ],
      "note": "Geography is the caller's framing of the question, not a mode the product switches on. Whichever scope you choose, the brief also reports where the topic is live across Canada, so you can see the distribution before deciding how to narrow it. An unparseable scope is an error rather than a silent fallback."
    }
  ],
  "mcp": {
    "url": "https://api.civicsignal.chesterhillsolutions.ca/mcp",
    "transport": "streamable-http",
    "tools": [
      {
        "name": "brief_topic",
        "description": "One call: everything known about a topic in Canada."
      },
      {
        "name": "statute_lookup",
        "description": "Statutes and regulations in force."
      },
      {
        "name": "cite_provision",
        "description": "Resolve one provision exactly, and say whether it is in force."
      },
      {
        "name": "debate_citations",
        "description": "Cited passages from the House of Commons."
      }
    ]
  },
  "errors": [
    {
      "code": "KEY_REQUIRED",
      "meaning": "No API key was presented."
    },
    {
      "code": "KEY_INVALID",
      "meaning": "The key is not recognised."
    },
    {
      "code": "RATE_LIMIT_EXCEEDED",
      "meaning": "Too many requests for this key or IP."
    },
    {
      "code": "FUSE_EXCEEDED",
      "meaning": "The workspace monthly allowance is exhausted."
    },
    {
      "code": "INVALID_ARGUMENT",
      "meaning": "Fix the request and retry."
    },
    {
      "code": "UNSUPPORTED_COVERAGE",
      "meaning": "The corpus does not cover this request — never a silent zero."
    }
  ]
}