ca_law_search
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_search for the schema, then POST the same URL with its arguments for the data.
Search Canadian federal Acts and regulations by words in the title, in English (lang “en”, default) or French (“fr”), e.g. “privacy” or “criminal code”. type is “act” (default), “regulation” or “all” (all reads more pages and is slower). Returns id, title, type, citation and a link; 25 per page. Federal law only, not provincial or territorial law. Pair with ca_law_get for the text.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Word(s) from the title, e.g. “privacy” or “criminal code” |
lang | string | no | ”en” (default) or “fr”; titles are searched in that language |
type | string | no | Acts (default), regulations or both (slower) |
page | number | no | Page number, 1-based (default 1) |
Example call
Arguments
{
"query": "privacy",
"lang": "en"
}
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_search","arguments":{"query":"privacy","lang":"en"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('ca_law_search', {
"query": "privacy",
"lang": "en"
});
Response shape
| Field | Type | Description |
|---|---|---|
query | string | |
lang | string | |
type | string | |
total_matches | number | |
page | number | |
count | number | |
results | array | |
next_page | number | null | |
source | string | |
data_as_of | string | |
note | string | |
empty_reason | string |
Full JSON Schema
{
"type": "object",
"properties": {
"query": {
"type": "string"
},
"lang": {
"type": "string"
},
"type": {
"type": "string"
},
"total_matches": {
"type": "number"
},
"page": {
"type": "number"
},
"count": {
"type": "number"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
},
"citation": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"additionalProperties": true
}
},
"next_page": {
"type": [
"number",
"null"
]
},
"source": {
"type": "string"
},
"data_as_of": {
"type": "string"
},
"note": {
"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.