Skip to main content
Glama
nyc-charter-laws-rules

nyc-charter-laws-rules

Get a section

get_section
Read-only

Retrieve a specific NYC Charter, Administrative Code, or Rules section by citation, optionally naming the corpus, title, or book to disambiguate, and page through long text or match lists.

Instructions

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 Charter § 1133', 'Admin. Code § 27-506'); then only that book is looked in. Code sections: 'FC 102', 'RS 18-1'. A code may be named in words ('Building Code 722.2.1.1.4'); a bare code number ('722.2.1.1.4') is looked for in every code. A part of a section ('§ 1133(b)(1)', 'Section FC 102.4(1)') returns the whole section; the first line names the part. Long text comes in parts, long lists in pages of 25; the answer gives the offset for the next.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "citation": "<citation>"
    },
    "name": "get_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
corpusNoWhich document to look in (default: all three)
offsetNoWhere to start: characters into a section's text, or matches into a list (default 0)
citationYesSection 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)')
max_charsNoMost characters of text per answer (default 20000, 1000 to 100000); longer text comes in parts

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.7.1
    • changedInput schema / properties / citation / description
      Previous value: -"Section citation or heading"New value: +"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)')"
    • addedInput schema / properties / max_chars
      Added value: +{
      +  "description": "Most characters of text per answer (default 20000, 1000 to 100000); longer text comes in parts",
      +  "maximum": 100000,
      +  "minimum": 1000,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Where to start: characters into a section's text, or matches into a list (default 0)",
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. First observedv0.4.4

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnlyHint=true and openWorldHint=false. The description adds substantial behavior beyond that: input normalization (optional '§', any case), what happens on ambiguous matches (a disambiguation list is returned), book-qualified citations narrowing the lookup, part citations returning the whole section, and chunking of long text into parts and lists into pages of 25.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded, but the remainder is one dense paragraph of concatenated examples that is hard to scan, and several citation variants could be consolidated. Every sentence carries information, yet the structure makes it slower to parse than a short bulleted ordering would.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter read tool with no output schema, the definition covers the inputs (corpus, offset, max_chars) and the observable output behaviors an agent must anticipate: disambiguation lists, part-citation results, and offset-based paging. Nothing needed to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: 'corpus' is explained with a concrete ambiguity example (charter 'Chapter 3' vs a rules chapter), and 'offset'/'max_chars' are tied to the pagination model ('long text comes in parts ... the answer gives the offset for the next'). What remains unstated is that unspecified corpus defaults to all three documents, which only the schema declares.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: 'Retrieve a specific section by its citation'. Citation-based addressing plus the worked citation examples ('§ 259', 'Chapter 11') make it distinguishable from search-style siblings without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear conditional guidance: pass 'corpus' to disambiguate when a citation exists in multiple documents, and name the title for Rules citations because each title restarts numbering. It does not explicitly route to siblings (e.g., get_title for enumerating titles, or a search tool for keyword lookup), so a small gap remains.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.