cl_law_get
Pack: chile-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/cl_law_get for the schema, then POST the same URL with its arguments for the data.
Fetch one Chilean norm by id_norma (from cl_law_search, e.g. 141599) or, for laws, by law_number (e.g. 19628). Returns type and number, title, issuing body, promulgation and publication dates, Diario Oficial citation, whether it is repealed (derogado), the version date of the current consolidated text, subject terms, and the text. Pass article (e.g. “1” or “4 bis”) for one article only; otherwise the text is capped at max_chars with the article count.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id_norma | number | no | Norm id from cl_law_search, e.g. 141599 |
law_number | number | no | Law (Ley) number, e.g. 19628; use instead of id_norma |
article | string | no | Article number, e.g. “1” or “4 bis” |
transitory | boolean | no | With article: look in the transitory articles (artículos transitorios) instead (default false) |
occurrence | number | no | With article: which match to return when a code embeds several texts with the same article number (default 1) |
max_chars | number | no | Cap on text when no article is given (default 20000, max 100000) |
Example call
Arguments
{
"law_number": 19628,
"article": "1"
}
curl
curl -X POST https://gateway.pipeworx.io/chile-law/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"cl_law_get","arguments":{"law_number":19628,"article":"1"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('cl_law_get', {
"law_number": 19628,
"article": "1"
});
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
id | string | |
id_norma | number | |
type | string | null | |
number | string | null | |
title | string | null | |
common_names | array | |
issued_by | array | |
promulgated | string | null | |
published | string | null | |
citation | string | |
in_force | boolean | |
repealed | boolean | |
text_version_date | string | null | |
text_version_note | string | |
subjects | array | |
url | string | |
article | string | |
article_title | string | null | |
article_repealed | boolean | |
article_version_date | string | null | |
matches | number | |
other_matches | array | |
note | string | |
article_count | number | |
transitory_article_count | number | |
text | string | null | |
truncated | boolean | |
total_chars | number | |
hint | string | |
empty_reason | string | |
source | string | |
data_as_of | string |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"id": {
"type": "string"
},
"id_norma": {
"type": "number"
},
"type": {
"type": [
"string",
"null"
]
},
"number": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"common_names": {
"type": "array",
"items": {
"type": "string"
}
},
"issued_by": {
"type": "array",
"items": {
"type": "string"
}
},
"promulgated": {
"type": [
"string",
"null"
]
},
"published": {
"type": [
"string",
"null"
]
},
"citation": {
"type": "string"
},
"in_force": {
"type": "boolean"
},
"repealed": {
"type": "boolean"
},
"text_version_date": {
"type": [
"string",
"null"
]
},
"text_version_note": {
"type": "string"
},
"subjects": {
"type": "array",
"items": {
"type": "string"
}
},
"url": {
"type": "string"
},
"article": {
"type": "string"
},
"article_title": {
"type": [
"string",
"null"
]
},
"article_repealed": {
"type": "boolean"
},
"article_version_date": {
"type": [
"string",
"null"
]
},
"matches": {
"type": "number"
},
"other_matches": {
"type": "array",
"items": {
"type": "string"
}
},
"note": {
"type": "string"
},
"article_count": {
"type": "number"
},
"transitory_article_count": {
"type": "number"
},
"text": {
"type": [
"string",
"null"
]
},
"truncated": {
"type": "boolean"
},
"total_chars": {
"type": "number"
},
"hint": {
"type": "string"
},
"empty_reason": {
"type": "string"
},
"source": {
"type": "string"
},
"data_as_of": {
"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 chile-law pack
{
"mcpServers": {
"chile-law": {
"url": "https://gateway.pipeworx.io/chile-law/mcp"
}
}
}
See Getting Started for client-specific install steps.