BC Data docs

federal_laws_status

Status of the federal laws load (documents loaded, queue, failures, measured cost)

Where the load of the English federal Acts and regulations stands: the repository commit being loaded, how many documents are loaded, queued and failed, the last error, and the cost D1 reported for the load so far (rows written and read, text and bytes). For operators checking the first load; not for answering questions about the law.

Cost: 1 unit of your allowance (see Rate limits).

Parameters

This tool takes no arguments. Send {}.

REST

curl -X POST https://api.bcmcp.ca/v1/tools/federal_laws_status \
  -H "Authorization: Bearer $BCDATA_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

MCP

Call the tool federal_laws_status with these arguments. Over raw JSON-RPC:

curl -X POST https://api.bcmcp.ca/mcp \
  -H "Authorization: Bearer $BCDATA_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"federal_laws_status","arguments":{}}}'

What comes back

Every answer is the same envelope, over REST and over MCP: available, data, citations, freshness and notes. See Citations and freshness.

On this page