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

nyc-charter-laws-rules

Get a chapter or title

get_title
Read-only

Lists chapters in a NYC Charter, Administrative Code, or Rules title, or sections within a chapter with citations and headings for locating the right legal text.

Instructions

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

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": {
      "corpus": "<corpus>",
      "title": "<title>"
    },
    "name": "get_title"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax records to return (default 200, max 1000)
titleYesA chapter ('Chapter 11'), or in the Administrative Code and the Rules a title ('Title 6') or both ('Title 15, Chapter 18')
corpusYesWhich document
offsetNoHow many to skip, to get the next page (default 0)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.7.1
    • changedInput schema / properties / title / description
      Previous value: -"A chapter ('Chapter 11'), or in the Administrative Code a title ('Title 6') or both ('Title 3, Chapter 1')"New value: +"A chapter ('Chapter 11'), or in the Administrative Code and the Rules a title ('Title 6') or both ('Title 15, Chapter 18')"
  2. Changed3 schema fields changedv0.6.0
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Max records to return (default 200, max 1000)",
      +  "maximum": 1000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "How many to skip, to get the next page (default 0)",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedInput schema / properties / title / description
      Previous value: -"Chapter or title identifier (e.g. 'Chapter 11')"New value: +"A chapter ('Chapter 11'), or in the Administrative Code a title ('Title 6') or both ('Title 3, Chapter 1')"
  3. First observedv0.4.4

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds ordering guarantees, the shape of each returned record, and the fact that chapters without numbers (Health Code) are included. It does not mention behavior on an unmatched or ambiguous query, which is the remaining gap.

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

Conciseness4/5

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

Front-loaded with the core action and return shape, then the input-format rules, with the get_section pointer in a parenthetical rather than a trailing aside. Dense but nearly every clause carries matching or routing information; the corpus-switching sentence is long but earns its length.

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

Completeness4/5

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

With no output schema, the description supplies the return shape and ordering, and the schema itself documents limit/offset paging and the corpus enum. What remains unstated is empty-result or not-found behavior for a malformed title string, a minor but real omission for a lookup tool.

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 goes beyond it by explaining how the title string is parsed — chapter-only, title-only, or combined — and by spelling out whole-number matching rules ('Chapter 1' is not 'Chapter 10' or 'Chapter 1-A'). That resolves the main ambiguity an agent would hit when filling the parameter.

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?

States a specific verb and resource — list a chapter's sections in order, returning heading plus each section's citation and heading — and explicitly separates itself from get_section, which returns text. The second half extends the same verb to title-level listing, so an agent can tell exactly what it gets back.

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?

Explicitly routes text retrieval to get_section and enumerates accepted input forms ('Chapter 70', 'Title 24', 'Title 15, Chapter 18'), which is real when-to-use guidance. It stops short of naming alternatives for discovery (e.g., list_titles or search) or stating when not to use this tool, so it falls just short of a 5.

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