pr_search

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

Search Puerto Rico statutes by topic or keyword in Spanish (e.g. “homicidio”, “arrendamiento”, “violencia doméstica”, “contratos”). Searches two tiers: REAL full-text search over the article bodies of the two LPRA-mapped consolidated codes (Código Penal / Código Civil — real body-text matches, not just catchlines), plus a title/catchline search over OGP’s full catalog of ~15,500 published “leyes” (acts) for topics outside those two codes. Each result is labelled result_type “lpra_section” (a real statute section, with its LPRA citation) or “act” (an act title match — call pr_statute with its act number for the text). Keyless, Spanish text as published.

Parameters

NameTypeRequiredDescription
querystringyesTopic or keywords in Spanish, e.g. “arrendamiento” (lease) or “homicidio” (homicide).
limitnumbernoMax results to return, default 10, max 30.

Example call

Arguments

{
  "query": "arrendamiento",
  "limit": 8
}

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_search","arguments":{"query":"arrendamiento","limit":8}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('pr_search', {
  "query": "arrendamiento",
  "limit": 8
});

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.

Regenerated from source · build October 9, 2026