pr_statute
Pack: puerto-rico-code · 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/pr_statute for the schema, then POST the same URL with its arguments for the data.
Get the text of a Puerto Rico “ley” (act) by citation — accepts an LPRA citation like “33 LPRA 5001” (33 L.P.R.A. § 5001, the Penal Code’s murder-related provisions title) or “31 LPRA 5311” (the Civil Code), OR a direct act number like “146-2012” (optionally with an article, e.g. “146-2012 Art. 92”). LPRA citations resolve ONLY for the LPRA títulos this pack has verified map to one specific act by reading that act’s own text (currently Título 31, Código Civil de Puerto Rico de 2020; and Título 33, Código Penal de Puerto Rico de 2012) — most of LPRA’s ~35 títulos aggregate many acts and are NOT yet mapped; for those, look up the specific “ley” by its own number instead. Returns the article/section heading and FULL SPANISH TEXT AS PUBLISHED by the Oficina de Gerencia y Presupuesto (OGP) — never machine-translated — plus the source PDF URL and data_as_of. Spanish statute citations and vocabulary: artículo, ley, código, estatuto, derecho puertorriqueño, Leyes de Puerto Rico Anotadas.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
citation | string | yes | An LPRA citation (“33 LPRA 5001”, “31 L.P.R.A. § 5311”), or an act number alone or with an article (“146-2012”, “146-2012 Art. 92”, “Ley 55-2020 Artículo 1”). |
Example call
Arguments
{
"citation": "33 LPRA 5001"
}
curl
curl -X POST https://gateway.pipeworx.io/puerto-rico-code/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"pr_statute","arguments":{"citation":"33 LPRA 5001"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('pr_statute', {
"citation": "33 LPRA 5001"
});
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 puerto-rico-code pack
{
"mcpServers": {
"puerto-rico-code": {
"url": "https://gateway.pipeworx.io/puerto-rico-code/mcp"
}
}
}
See Getting Started for client-specific install steps.