New York Code

live LegalDeveloperResearch

New York Consolidated Laws — state statutes by citation.

2 tools
0ms auth
free tier 50 calls/day

Tools

ny_law_section

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

No parameters required.

Try it
ny_laws

List the New York law corpora — Penal Law is PEN, Labor Law is LAB, Vehicle and Traffic is VAT, and so on — optionally filtered by subject. Use when you know the subject but not the law id, before cal

No parameters required.

Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/new-york-code/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/new-york-code/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"ny_law_section","arguments":{}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("ny_law_section", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("new york consolidated laws — state statutes by citation");