NYC Charter, Laws and Rules

v0.8.0
io.github.BetaNYC/nyc-charter-laws-rules Checked 2 hours ago Published 4 days ago

Search 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.

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…

ParameterTypeDescription
citation *stringSection 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)')
corpusstringWhich document to look in (default: all three)
max_charsintegerMost characters of text per answer (default 20000, 1000 to 100000); longer text comes in parts
offsetintegerWhere 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'.

ParameterTypeDescription
corpus *stringWhich document to list
limitintegerMax titles to return (default 200, max 1000)
offsetintegerHow 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'.

ParameterTypeDescription
corpus *stringWhich document
title *stringA chapter ('Chapter 11'), or in the Administrative Code and the Rules a title ('Title 6') or both ('Title 15, Chapter 18')
limitintegerMax records to return (default 200, max 1000)
offsetintegerHow 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).

ParameterTypeDescription
limitintegerMost entries to return (default 10, max 50)
sincestringOnly changes on or after this date, YYYY-MM-DD
tagstringOnly 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…

ParameterTypeDescription
topicstringOne kind of data (a source id), or a tool name for the data behind that tool. Any case. Default: all.