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

nyc-charter-laws-rules

List chapters or titles

list_titles
Read-only

List chapters or titles in order for NYC Charter, Administrative Code, and Rules, returning headings and section ranges so you can browse or page through a document's structure.

Instructions

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

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>"
    },
    "name": "list_titles"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax titles to return (default 200, max 1000)
corpusYesWhich document to list
offsetNoHow many to skip, to get the next page (default 0)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.6.0
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Max titles 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"
      +}
  2. First observedv0.4.4

TDQS

A3.7/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 genuinely useful behavior beyond that: results are ordered, each carries a heading, admin code chapters carry section ranges because numbers repeat, and a chapter without a number (Health Code) is identified by name. Pagination behavior is left to the schema's limit/offset fields.

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?

The core action is front-loaded in the first clause and every subsequent clause explains a distinct output-format case rather than padding. It is dense and somewhat sentence-heavy with three inline format examples, but nothing is redundant.

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?

There is no output schema, and the description compensates by describing the returned item shape ('Title 15, Chapter 18', section ranges) across corpora. Paging is handled by the schema, so the main remaining gap is guidance on choosing this tool over siblings.

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

Parameters3/5

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

Schema coverage is 100%, with corpus enum values and limit/offset defaults already documented in the schema, so the baseline is 3. The description clarifies the downstream formatting differences between corpora, but it does not explain what 'charter' yields and adds no new parameter semantics beyond the schema.

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

Purpose4/5

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

The description opens with a specific verb and resource ('List a document's chapters in order, each with its heading') and then characterizes the output shape per corpus. It does not name any sibling such as get_title or search, so sibling differentiation is left to inference, but the operation itself is unambiguous.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer you call this to discover chapters before fetching one with get_title, but the description never says when to prefer this over get_title, search, or get_version. There are no explicit prerequisites or exclusions.

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