ny_law_section

Pack: new-york-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/ny_law_section for the schema, then POST the same URL with its arguments for the data.

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 — 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 new-york-code pack
{
  "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 September 25, 2026