mx_law_search
Pack: mexico-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/mx_law_search for the schema, then POST the same URL with its arguments for the data.
Search Mexican federal laws and codes by Spanish words in their name (e.g. “protección de datos personales”, “amparo”, “código penal federal”). Searches both the list of laws in force (vigentes) and the list of abrogated laws (abrogadas), and says which list each one is on. Returns law_id (e.g. “lfpdppp”, or “abro:LAmp_abro” for an abrogated law), name, status as the publisher lists it, the DOF date of the original publication and of the last reform (or of the abrogation). Pair with mx_law_get for the text.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Spanish words in the law name, e.g. “datos personales” |
status | string | no | Which list to search (default all) |
limit | number | no | Maximum results (default 15, max 50) |
Example call
Arguments
{
"query": "datos personales"
}
curl
curl -X POST https://gateway.pipeworx.io/mexico-law/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"mx_law_search","arguments":{"query":"datos personales"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('mx_law_search', {
"query": "datos personales"
});
Response shape
| Field | Type | Description |
|---|---|---|
query | string | |
status_filter | string | |
total_matches | number | |
count | number | |
results | array | |
note | string | |
source | string | |
data_as_of | string |
Full JSON Schema
{
"type": "object",
"properties": {
"query": {
"type": "string"
},
"status_filter": {
"type": "string"
},
"total_matches": {
"type": "number"
},
"count": {
"type": "number"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"law_id": {
"type": "string"
},
"name": {
"type": "string"
},
"status": {
"type": "string"
},
"original_dof": {
"type": "string"
},
"last_reform_dof": {
"type": "string"
},
"list_note": {
"type": "null"
},
"url": {
"type": "string"
},
"abrogation_dof": {
"type": "string"
}
},
"additionalProperties": true
}
},
"note": {
"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 mexico-law pack
{
"mcpServers": {
"mexico-law": {
"url": "https://gateway.pipeworx.io/mexico-law/mcp"
}
}
}
See Getting Started for client-specific install steps.