ca_code_section

Pack: california-code · Endpoint: https://gateway.pipeworx.io/california-code/mcp

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

NameTypeRequiredDescription
codestringyesCalifornia code abbreviation, e.g. “PEN” (Penal), “CIV” (Civil), “VEH” (Vehicle), “LAB” (Labor). Call ca_codes to see all 29.
sectionstringyesSection 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, or use one-click install buttons:

{
  "mcpServers": {
    "california-code": {
      "url": "https://gateway.pipeworx.io/california-code/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 12, 2026