federal_law_search
Search the text of federal Acts and regulations of Canada (consolidation)
Full-text search across the English consolidated federal Acts and regulations of Canada (the Justice Canada repository, Open Government Licence - Canada): each hit is a section (or schedule, preamble, order) with its Act or regulation, section number, marginal note and a short excerpt. Federal law only, not B.C. law. A convenience consolidation, not the official version. Use federal_law_section for the full text of a hit.
Cost: 2 units of your allowance (see Rate limits).
Parameters
query(string, required): min length 2, max length 120kind(act,regulation, optional)phrase(boolean, optional): defaultfalselimit(integer, optional): min 1, max 25, default10offset(integer, optional): min 0, max 1000, default0
REST
curl -X POST https://api.bcmcp.ca/v1/tools/federal_law_search \
-H "Authorization: Bearer $BCDATA_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"..."}'MCP
Call the tool federal_law_search 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_law_search","arguments":{"query":"..."}}}'What comes back
Every answer is the same envelope, over REST and over MCP: available, data, citations, freshness and notes. See Citations and freshness.