ny_law_section

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

Get the FULL TEXT of a section of the New York Consolidated Laws — New York state statutes — by citation. “Penal Law 125.25” is law “PEN”, section “125.25”. Returns the statutory text, its heading and the date that version took effect. Use for “what does NY Penal Law 125.25 say”, “text of New York Labor Law 240”, or to check a New York statute a case or contract relies on.

Parameters

NameTypeRequiredDescription
lawstringyesNew York law id, e.g. “PEN” (Penal), “LAB” (Labor), “GOB” (General Obligations), “VAT” (Vehicle and Traffic). Call ny_laws to find one.
sectionstringyesSection number as cited, e.g. “125.25” or “240”.

Example call

Arguments

{
  "law": "PEN",
  "section": "125.25"
}

curl

curl -X POST https://gateway.pipeworx.io/new-york-code/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ny_law_section","arguments":{"law":"PEN","section":"125.25"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('ny_law_section', {
  "law": "PEN",
  "section": "125.25"
});

More examples

{
  "law": "LAB",
  "section": "240"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

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

See Getting Started for client-specific install steps.

Regenerated from source · build August 12, 2026