cl_law_search

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_search for the schema, then POST the same URL with its arguments for the data.

Search Chilean national legislation (leyes, códigos, decretos con fuerza de ley, decretos, resoluciones) by words in Spanish or by number, e.g. “ley 19628”, “protección de la vida privada”, “código civil”. Returns id_norma, type and number, title, issuing ministry, publication date (Diario Oficial), in-force flag, and a link; pass page for more. sort: “relevance” (default), “newest” or “oldest”. Pair with cl_law_get for the text.

Parameters

NameTypeRequiredDescription
querystringyesSpanish words or a law number, e.g. “ley 19628” or “datos personales”
sortstringnoResult order (default relevance)
exactbooleannoTreat the query as an exact phrase (default false)
pagenumbernoPage number, 10 results per page (default 1)

Example call

Arguments

{
  "query": "ley 19628"
}

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_search","arguments":{"query":"ley 19628"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('cl_law_search', {
  "query": "ley 19628"
});

Response shape

FieldTypeDescription
querystring
pagenumber
total_matchesnumber
countnumber
resultsarray
next_pagenumber | null
empty_reasonstring
sourcestring
data_as_ofstring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    },
    "page": {
      "type": "number"
    },
    "total_matches": {
      "type": "number"
    },
    "count": {
      "type": "number"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id_norma": {
            "type": "number"
          },
          "type": {
            "type": [
              "string",
              "null"
            ]
          },
          "number": {
            "type": [
              "string",
              "null"
            ]
          },
          "label": {
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "common_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "issued_by": {
            "type": [
              "string",
              "null"
            ]
          },
          "promulgated": {
            "type": [
              "string",
              "null"
            ]
          },
          "published": {
            "type": [
              "string",
              "null"
            ]
          },
          "in_force": {
            "type": "boolean"
          },
          "repealed_on": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": true
      }
    },
    "next_page": {
      "type": [
        "number",
        "null"
      ]
    },
    "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