ca_law_get
Pack: canada-law · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/ca_law_get for the schema, then POST the same URL with its arguments for the data.
Fetch one Canadian federal Act or regulation by id from ca_law_search (e.g. “P-8.6” for the Personal Information Protection and Electronic Documents Act, or “SOR-2007-151”), in English or French. Returns title, citation, in-force status as the source states it (null for regulations, which the source does not flag), dates, and the consolidated text. Pass section (e.g. “5” or “5.1”) for one section; without it the text is capped at max_chars with a section list. Schedules are not addressable by section.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Id from ca_law_search, e.g. “P-8.6”, “C-46” or “SOR-2007-151” |
lang | string | no | ”en” (default) or “fr”; use the id as listed for that language (French regulations use DORS-, not SOR-) |
section | string | no | Section number, e.g. “5” or “5.1” |
max_chars | number | no | Cap on returned text when no section is given (default 20000, max 100000) |
Example call
Arguments
{
"id": "P-8.6",
"section": "5"
}
curl
curl -X POST https://gateway.pipeworx.io/canada-law/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ca_law_get","arguments":{"id":"P-8.6","section":"5"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('ca_law_get', {
"id": "P-8.6",
"section": "5"
});
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
id | string | |
lang | string | |
type | string | |
title | string | |
citation | string | null | |
consolidated_number | string | null | |
assented_date | string | null | |
registration_date | string | null | |
status | string | null | |
in_force_start | string | null | |
last_amended | string | null | |
current_to | string | null | |
url | string | |
source | string | |
data_as_of | string | |
note | string | |
section | string | |
section_title | string | |
section_count | number | |
sections | array | |
text | string | null | |
truncated | boolean | |
total_chars | number | |
hint | string | |
empty_reason | string |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"id": {
"type": "string"
},
"lang": {
"type": "string"
},
"type": {
"type": "string"
},
"title": {
"type": "string"
},
"citation": {
"type": [
"string",
"null"
]
},
"consolidated_number": {
"type": [
"string",
"null"
]
},
"assented_date": {
"type": [
"string",
"null"
]
},
"registration_date": {
"type": [
"string",
"null"
]
},
"status": {
"type": [
"string",
"null"
]
},
"in_force_start": {
"type": [
"string",
"null"
]
},
"last_amended": {
"type": [
"string",
"null"
]
},
"current_to": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
},
"source": {
"type": "string"
},
"data_as_of": {
"type": "string"
},
"note": {
"type": "string"
},
"section": {
"type": "string"
},
"section_title": {
"type": "string"
},
"section_count": {
"type": "number"
},
"sections": {
"type": "array",
"items": {
"type": "string"
}
},
"text": {
"type": [
"string",
"null"
]
},
"truncated": {
"type": "boolean"
},
"total_chars": {
"type": "number"
},
"hint": {
"type": "string"
},
"empty_reason": {
"type": "string"
}
},
"additionalProperties": true
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the canada-law pack
{
"mcpServers": {
"canada-law": {
"url": "https://gateway.pipeworx.io/canada-law/mcp"
}
}
}
See Getting Started for client-specific install steps.