NYC Charter, Laws and Rules
v0.8.0Search and read the NYC Charter, Administrative Code and Rules of the City of New York
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search Search the law text
Keyword search across the NYC Charter, Administrative Code, and Rules of the City of New York. This is keyword matching, not a question-answering engine: short keyword queries work best (e.g. 'sidewalk shed', 'water tank inspection'), not full questions. An empty query is an error. A query or term of 3 or fewer letters and digits matches whole words only ('x' is not the x in 'wax'). The query is first matched as an exact phrase (quotes around the whole query are removed first); results are relevance-ranked, with heading matches above citation matches above body-text matches, and whole-word mat…
| Parameter | Type | Description |
|---|---|---|
query * | string | Keywords or an exact phrase (short keyword queries work best) |
corpus | string | Which document to search (default: all) |
limit | integer | Max results to return (default 10, max 50) |
get_section Get a section
Retrieve a specific section by its citation (e.g. '§ 259', 'Section 259', '11-602.1', 'Chapter 11'). Input is normalized (with or without '§', any case). Pass 'corpus' to disambiguate when the same citation exists in multiple documents (e.g. charter 'Chapter 3' vs a rules chapter); if multiple sections still match, a disambiguation list is returned. Each title of the Rules restarts its numbers, so name the title: '15 RCNY § 1-01' or 'Title 15 § 1-01' ('24 RCNY Health Code § 81.08'); a bare '§ 1-01' lists every title's, each labeled with its title. A citation may name its book ('NYC Chart…
| Parameter | Type | Description |
|---|---|---|
citation * | string | Section citation or heading; a Rules citation with its title ('15 RCNY § 1-01'); may name its book ('NYC Charter § 1133') or a part ('§ 1133(b)(1)') |
corpus | string | Which document to look in (default: all three) |
max_chars | integer | Most characters of text per answer (default 20000, 1000 to 100000); longer text comes in parts |
offset | integer | Where to start: characters into a section's text, or matches into a list (default 0) |
list_titles List chapters or titles
List a document's chapters in order, each with its heading. Administrative Code chapters show their section range, since several share a number: 'Chapter 1 (§ 3-101 to § 3-196)'. Rules chapters are listed by title, each title named before its chapters: 'Title 15, Chapter 18'; a chapter with no number, such as the Health Code, by its name: 'Title 24, New York City Health Code'.
| Parameter | Type | Description |
|---|---|---|
corpus * | string | Which document to list |
limit | integer | Max titles to return (default 200, max 1000) |
offset | integer | How many to skip, to get the next page (default 0) |
get_title Get a chapter or title
List a chapter's sections in order: its heading, then each section's citation and heading (get_section gives the text). 'Chapter 70' gives every chapter with that number. Administrative Code and Rules: 'Title 24' gives every record in that title, chapter by chapter, including chapters with no number such as the Health Code ('Title 16' is not 16-A); 'Title 15, Chapter 18' gives only its Chapter 18. Numbers match whole: 'Chapter 1' is not 'Chapter 10' or 'Chapter 1-A'.
| Parameter | Type | Description |
|---|---|---|
corpus * | string | Which document |
title * | string | A chapter ('Chapter 11'), or in the Administrative Code and the Rules a title ('Title 6') or both ('Title 15, Chapter 18') |
limit | integer | Max records to return (default 200, max 1000) |
offset | integer | How many to skip, to get the next page (default 0) |
get_version How current the text is
Return the currency date for each document — how current the Charter, Administrative Code, and Rules are. Each corpus updates on its own schedule. Always call this tool before answering legal questions so responses are grounded in the correct version of the law.
whats_changed What's changed
What has changed in this server, its data and its website, newest first, from the project's WHATS-CHANGED.md: new tools and pages, new data, data fixes, and corrections when BetaNYC published something wrong. Each correction says what to re-check if you used the old numbers. Call this before relying on a figure you got from this server earlier, or when a user asks whether something was fixed. Filter with since (YYYY-MM-DD; also keeps older entries that have an update on or after that date) and tag (Site, Data, MCP or Correction).
| Parameter | Type | Description |
|---|---|---|
limit | integer | Most entries to return (default 10, max 50) |
since | string | Only changes on or after this date, YYYY-MM-DD |
tag | string | Only changes with this tag: Site, Data, MCP or Correction (any case; answers use these spellings). Correction lists every correction. |
about_betanyc About BetaNYC and this server
Who built this server and how to reach them: BetaNYC, a project of the Fund for the City of New York. Returns what BetaNYC is, links to its events, newsletter and donation page, where to report a bug in this server or ask for a new feature (this server's GitHub issues), and this server's name and version.
about_data Where this server's data comes from
Where this server's data comes from and how far to trust it. For each kind of data: who publishes it and a link, whether it is an official record (only data its publisher published and BetaNYC did not modify is; data BetaNYC modified or produced is not), how it was gathered, what BetaNYC did to it (for example cleaned it, matched it to addresses, joined it with other data, or counted it), how current it is on this server, what it covers and what is missing, the terms of use and the credit line to print, where to check a figure at the official record, where to report an error (to BetaNYC when B…
| Parameter | Type | Description |
|---|---|---|
topic | string | One kind of data (a source id), or a tool name for the data behind that tool. Any case. Default: all. |