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

NameTypeRequiredDescription
doc_idstringnoDocument id from co_law_search, e.g. “ley_1581_2012”
typestringnoWith number and year, in place of doc_id
numbernumbernoNorm number, e.g. 1581
yearnumbernoYear of issue, e.g. 2012
articlestringnoArticle number, e.g. “15” or “2.2.2.25.1.1”
max_charsnumbernoCap 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

FieldTypeDescription
foundboolean
doc_idstring
kindstring
titlestring | null
datestring | null
gazettestring | null
issued_bystring | null
subjectstring | null
statusstring
status_notestring
articles_noted_repealednumber
articles_in_text_readnumber
validity_notesarray
urlstring
articlestring
article_notesarray
article_repealedboolean
partstring | null
article_countnumber
textstring | null
truncatedboolean
total_charsnumber
continues_in_partstring
hintstring
empty_reasonstring
sourcestring
data_as_ofstring
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.

Regenerated from source · build November 15, 2026