Browse Code Structure
list_statute_divisionsWalk a statute’s hierarchy by listing the level directly below a code, title, chapter, or part, so you can drill down in statutory order to leaf sections and act IDs.
Instructions
Walk the statutory hierarchy: list the level directly below what you pass, in statutory order. Which level that is depends on the code, so read level and each node's kind and pass its identifier back as the filter that kind names, until isLeaf is true and actId is set. One listing can mix kinds. name is null when the publisher prints no heading. A filter that does not fit the corpus is a 422 before any charge; an empty level is refunded; nextCursor means page on.
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": {
"corpusType": "<corpusType>"
},
"name": "list_statute_divisions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| act | No | State codes and court rules only: the act to list, from a node with `kind: act` (an Illinois act inside an ILCS chapter, a Pennsylvania unconsolidated act). Needs `code`. | |
| code | No | Code to drill into, from a node with `kind: code`: a state code (`tx_pe`), a federal rule set (`frcp`), or a state court rule set (`SCR61`, with `corpusType=STATE_RULES` and `state`). | |
| part | No | Part to drill into, from a node with `kind: part`: a CFR part, a U.S. Code part (needs `titleNumber`), or a part of a state code or court rule set (needs `code`). Pass the `identifier` exactly as the listing returned it. | |
| state | No | 2-letter jurisdiction code, required for the state-scoped corpora (STATE, REGULATION, STATE_RULES, STATE_CONSTITUTION). Case-insensitive. | |
| title | No | State codes and regulations only: the title inside a code to list, as a listing returned it (`kind: title`), such as Title 5 of the Texas Penal Code. Needs `code`. A U.S. Code or CFR title is `titleNumber`. | |
| agency | No | State regulations only: the agency to list (`kind: agency`), as a listing returned it, e.g. Maine `144`. A chapter number repeats under different agencies, so name the agency to open the right chapter. Needs `code`. | |
| cursor | No | Resume token from a previous response's `nextCursor`, passed back with the same filters. Omit it to start at the beginning of the listing. | |
| article | No | Article to drill into: a constitution's article or amendment (`Article III`, `Amendment XIV`), or any state-code node with `kind: article` (New York's codes, Delaware's UCC articles outside a chapter). Can be combined with `chapter`. Pass the `identifier` exactly as the listing returned it. | |
| chapter | No | Chapter to drill into (USC, CFR and state codes), or the first level inside a court rule set (`kind: chapter`; needs `code`). On CFR it lists the chapter's parts and needs `titleNumber`; with `part` it is not needed. | |
| program | No | State regulations only: the program to list (`kind: program`), as a listing returned it. Wyoming prints a program between an agency and its chapters, and chapter `1` repeats under every program. Needs `code`. | |
| subpart | No | Subpart to list (`kind: subpart`): a U.S. Code or CFR subpart (needs `part` and `titleNumber`), or a state regulation subpart such as Louisiana's or Mississippi's (needs `code` and the `part`). Case-insensitive. | |
| division | No | Division to list, from a node with `kind: division`: a U.S. Code division (Title 54, 42 U.S.C. ch. 157; needs `titleNumber`) or a state or regulation code division (California; needs `code` and the levels above it). | |
| subtitle | No | Subtitle to list, from a node with `kind: subtitle`: a U.S. Code subtitle (needs `titleNumber`) or a state code subtitle (needs `code` and the `title` it sits in). | |
| umbrella | No | State regulations only: the umbrella to list (`kind: umbrella`), as a listing returned it. Maine groups its agencies under a department umbrella (`10` is the Department of Health and Human Services). Needs `code`. | |
| actStatus | No | List only sections carrying this status, e.g. `repealed`. The inverse of `excludeRepealed`, and useful for auditing what a container holds that is no longer operative. | |
| corpusType | Yes | Corpus to browse. Case-insensitive. The browsable subset of the `corpusType` tokens on `/us/statutes/coverage`. | |
| subchapter | No | Subchapter to list, from a node with `kind: subchapter`: a U.S. Code subchapter (with `titleNumber` and `chapter`) or a state or court-rule subchapter (with `code`). Case-insensitive. | |
| subdivision | No | U.S. Code only: the subdivision to list (`kind: subdivision`, Title 54). Needs the `division` it belongs to. | |
| titleNumber | No | USC/CFR title number to drill into. On the U.S. Code, `5a` and `18a` name the Appendix to Title 5 and Title 18 (a title list returns them as their own rows). | |
| subjectGroup | No | CFR only: the subject group to list (`kind: subjectGroup`), as the heading the listing returned or its eCFR id (`ECFR` and 15 hex digits), which needs no `subpart`. Needs `titleNumber` and `part`. Case-insensitive. | |
| Idempotency-Key | No | Optional, 16 to 255 visible ASCII characters (a UUIDv4 is ideal). A retry with the same key and request replays the original 2xx for 24 hours without charging again; the same key with a different request is rejected. | |
| excludeRepealed | No | Only sections with an affirmatively dead status, including repealed, superseded or renumbered, are excluded. Sections with no recorded status are kept, not treated as repealed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||