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

NameTypeRequiredDescription
idstringyesId from ca_law_search, e.g. “P-8.6”, “C-46” or “SOR-2007-151”
langstringno”en” (default) or “fr”; use the id as listed for that language (French regulations use DORS-, not SOR-)
sectionstringnoSection number, e.g. “5” or “5.1”
max_charsnumbernoCap 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

FieldTypeDescription
foundboolean
idstring
langstring
typestring
titlestring
citationstring | null
consolidated_numberstring | null
assented_datestring | null
registration_datestring | null
statusstring | null
in_force_startstring | null
last_amendedstring | null
current_tostring | null
urlstring
sourcestring
data_as_ofstring
notestring
sectionstring
section_titlestring
section_countnumber
sectionsarray
textstring | null
truncatedboolean
total_charsnumber
hintstring
empty_reasonstring
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.

Regenerated from source · build November 15, 2026