co_law_get
Pack: colombia-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/co_law_get for the schema, then POST the same URL with its arguments for the data.
Fetch one Colombian norm by doc_id (from co_law_search, e.g. “ley_1581_2012”) or by type + number + year (e.g. ley 1581 of 2012). Returns title, date, Diario Oficial citation, issuing body, the validity notes the compilation records (declared exequible, amended, repealed), a repeal status derived from them, and the text. Pass article (e.g. “15”, “1o” style numbers work as “1”) for one article with its own validity notes; otherwise text is capped at max_chars. Large laws are split into parts; the article lookup follows the parts.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
doc_id | string | no | Document id from co_law_search, e.g. “ley_1581_2012” |
type | string | no | With number and year, in place of doc_id |
number | number | no | Norm number, e.g. 1581 |
year | number | no | Year of issue, e.g. 2012 |
article | string | no | Article number, e.g. “15” or “2.2.2.25.1.1” |
max_chars | number | no | Cap on text when no article is given (default 20000, max 100000) |
Example call
Arguments
{
"doc_id": "ley_1151_2007",
"article": "1"
}
curl
curl -X POST https://gateway.pipeworx.io/colombia-law/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"co_law_get","arguments":{"doc_id":"ley_1151_2007","article":"1"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('co_law_get', {
"doc_id": "ley_1151_2007",
"article": "1"
});
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
doc_id | string | |
kind | string | |
title | string | null | |
date | string | null | |
gazette | string | null | |
issued_by | string | null | |
subject | string | null | |
status | string | |
status_note | string | |
articles_noted_repealed | number | |
articles_in_text_read | number | |
validity_notes | array | |
url | string | |
article | string | |
article_notes | array | |
article_repealed | boolean | |
part | string | null | |
article_count | number | |
text | string | null | |
truncated | boolean | |
total_chars | number | |
continues_in_part | string | |
hint | string | |
empty_reason | string | |
source | string | |
data_as_of | string |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"doc_id": {
"type": "string"
},
"kind": {
"type": "string"
},
"title": {
"type": [
"string",
"null"
]
},
"date": {
"type": [
"string",
"null"
]
},
"gazette": {
"type": [
"string",
"null"
]
},
"issued_by": {
"type": [
"string",
"null"
]
},
"subject": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"status_note": {
"type": "string"
},
"articles_noted_repealed": {
"type": "number"
},
"articles_in_text_read": {
"type": "number"
},
"validity_notes": {
"type": "array",
"items": {
"type": "string"
}
},
"url": {
"type": "string"
},
"article": {
"type": "string"
},
"article_notes": {
"type": "array",
"items": {
"type": "string"
}
},
"article_repealed": {
"type": "boolean"
},
"part": {
"type": [
"string",
"null"
]
},
"article_count": {
"type": "number"
},
"text": {
"type": [
"string",
"null"
]
},
"truncated": {
"type": "boolean"
},
"total_chars": {
"type": "number"
},
"continues_in_part": {
"type": "string"
},
"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 colombia-law pack
{
"mcpServers": {
"colombia-law": {
"url": "https://gateway.pipeworx.io/colombia-law/mcp"
}
}
}
See Getting Started for client-specific install steps.