ca_code_section
Pack: california-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/ca_code_section for the schema, then POST the same URL with its arguments for the data.
Get the FULL TEXT of a section of the California Codes — California state statutes — by citation. “Penal Code 187” is code “PEN”, section “187”. Returns the statutory text, where it sits in the code, and when it was last amended. Keyless. Use for “what does California Penal Code 187 say”, “text of California Civil Code 1542”, or to check a California statute a contract or case relies on.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
code | string | yes | California code abbreviation, e.g. “PEN” (Penal), “CIV” (Civil), “VEH” (Vehicle), “LAB” (Labor). Call ca_codes to see all 29. |
section | string | yes | Section number as cited, e.g. “187” or “1542”. Subdivisions like “187(a)” are not separate documents — pass the section. |
Example call
Arguments
{
"code": "PEN",
"section": "187"
}
curl
curl -X POST https://gateway.pipeworx.io/california-code/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ca_code_section","arguments":{"code":"PEN","section":"187"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('ca_code_section', {
"code": "PEN",
"section": "187"
});
More examples
{
"code": "CIV",
"section": "1542"
}
{
"code": "VEH",
"section": "23152"
}
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 california-code pack
{
"mcpServers": {
"california-code": {
"url": "https://gateway.pipeworx.io/california-code/mcp"
}
}
}
See Getting Started for client-specific install steps.