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

NameTypeRequiredDescription
id_normanumbernoNorm id from cl_law_search, e.g. 141599
law_numbernumbernoLaw (Ley) number, e.g. 19628; use instead of id_norma
articlestringnoArticle number, e.g. “1” or “4 bis”
transitorybooleannoWith article: look in the transitory articles (artículos transitorios) instead (default false)
occurrencenumbernoWith article: which match to return when a code embeds several texts with the same article number (default 1)
max_charsnumbernoCap 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

FieldTypeDescription
foundboolean
idstring
id_normanumber
typestring | null
numberstring | null
titlestring | null
common_namesarray
issued_byarray
promulgatedstring | null
publishedstring | null
citationstring
in_forceboolean
repealedboolean
text_version_datestring | null
text_version_notestring
subjectsarray
urlstring
articlestring
article_titlestring | null
article_repealedboolean
article_version_datestring | null
matchesnumber
other_matchesarray
notestring
article_countnumber
transitory_article_countnumber
textstring | null
truncatedboolean
total_charsnumber
hintstring
empty_reasonstring
sourcestring
data_as_ofstring
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.

Regenerated from source · build November 15, 2026