Skip to main content
Glama
Vaquill-AI/vaquill-mcp

Vaquill-AI/vaquill-mcp

Official
by Vaquill-AI

Browse Code Structure

list_statute_divisions
Read-only

Walk 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

NameRequiredDescriptionDefault
actNoState 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`.
codeNoCode 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`).
partNoPart 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.
stateNo2-letter jurisdiction code, required for the state-scoped corpora (STATE, REGULATION, STATE_RULES, STATE_CONSTITUTION). Case-insensitive.
titleNoState 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`.
agencyNoState 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`.
cursorNoResume token from a previous response's `nextCursor`, passed back with the same filters. Omit it to start at the beginning of the listing.
articleNoArticle 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.
chapterNoChapter 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.
programNoState 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`.
subpartNoSubpart 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.
divisionNoDivision 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).
subtitleNoSubtitle 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).
umbrellaNoState 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`.
actStatusNoList 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.
corpusTypeYesCorpus to browse. Case-insensitive. The browsable subset of the `corpusType` tokens on `/us/statutes/coverage`.
subchapterNoSubchapter 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.
subdivisionNoU.S. Code only: the subdivision to list (`kind: subdivision`, Title 54). Needs the `division` it belongs to.
titleNumberNoUSC/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).
subjectGroupNoCFR 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-KeyNoOptional, 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.
excludeRepealedNoOnly 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

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed26 schema fields changedv0.5.0
    • addedInput schema / properties / Idempotency-Key
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 255,
      +      "minLength": 16,
      +      "pattern": "^[\\x21-\\x7e]+$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "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.",
      +  "examples": [
      +    "3f9c2a1e-7b44-4d0a-9c1e-5a6b7c8d9e0f"
      +  ]
      +}
    • addedInput schema / properties / act
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "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`.",
      +  "examples": [
      +    "410"
      +  ]
      +}
    • addedInput schema / properties / actStatus
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "abolished",
      +        "deleted",
      +        "expired",
      +        "in_force",
      +        "inactive",
      +        "non_precedential",
      +        "not_funded",
      +        "not_yet_effective",
      +        "omitted",
      +        "proposed",
      +        "recodified",
      +        "recompiled",
      +        "rejected",
      +        "relocated",
      +        "removed",
      +        "renumbered",
      +        "repealed",
      +        "rescinded",
      +        "reserved",
      +        "revoked",
      +        "superseded",
      +        "terminated",
      +        "transferred",
      +        "unconstitutional",
      +        "vacant",
      +        "vacated",
      +        "vetoed",
      +        "withdrawn"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "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."
      +}
    • addedInput schema / properties / agency
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "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`.",
      +  "examples": [
      +    "144"
      +  ]
      +}
    • addedInput schema / properties / article
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "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.",
      +  "examples": [
      +    "Article III"
      +  ]
      +}
    • changedInput schema / properties / chapter / description
      Previous value: -"Chapter identifier to drill into (USC and state codes)."New value: +"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."
    • changedInput schema / properties / code / description
      Previous value: -"State code identifier, e.g. `tx_pe` (browse `/us/statutes/divisions` with `corpusType=STATE&state=<code>` to list them)."New value: +"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`)."
    • changedInput schema / properties / corpusType / description
      Previous value: -"Corpus to browse: USC, CFR, STATE, or REGULATION."New value: +"Corpus to browse. Case-insensitive. The browsable subset of the `corpusType` tokens on `/us/statutes/coverage`."
    • changedInput schema / properties / corpusType / enum
      Previous value: -[
      -  "USC",
      -  "CFR",
      -  "STATE",
      -  "REGULATION"
      -]New value: +[
      +  "USC",
      +  "CFR",
      +  "STATE",
      +  "REGULATION",
      +  "STATE_RULES",
      +  "CONSTITUTION",
      +  "STATE_CONSTITUTION",
      +  "FEDERAL_RULES"
      +]
    • addedInput schema / properties / cursor
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Resume token from a previous response's `nextCursor`, passed back with the same filters. Omit it to start at the beginning of the listing."
      +}
    • addedInput schema / properties / division
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "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).",
      +  "examples": [
      +    "A"
      +  ]
      +}
    • addedInput schema / properties / excludeRepealed
      Added value: +{
      +  "default": false,
      +  "description": "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.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / part / description
      Previous value: -"Part identifier to drill into (CFR)."New value: +"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."
    • addedInput schema / properties / program
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "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`.",
      +  "examples": [
      +    "0001"
      +  ]
      +}
    • changedInput schema / properties / state / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "al",
      +      "ak",
      +      "as",
      +      "az",
      +      "ar",
      +      "ca",
      +      "co",
      +      "ct",
      +      "de",
      +      "dc",
      +      "fl",
      +      "ga",
      +      "gu",
      +      "hi",
      +      "id",
      +      "il",
      +      "in",
      +      "ia",
      +      "ks",
      +      "ky",
      +      "la",
      +      "me",
      +      "md",
      +      "ma",
      +      "mi",
      +      "mn",
      +      "ms",
      +      "mo",
      +      "mt",
      +      "ne",
      +      "nv",
      +      "nh",
      +      "nj",
      +      "nm",
      +      "ny",
      +      "nc",
      +      "nd",
      +      "mp",
      +      "oh",
      +      "ok",
      +      "or",
      +      "pa",
      +      "pr",
      +      "ri",
      +      "sc",
      +      "sd",
      +      "tn",
      +      "tx",
      +      "ut",
      +      "vt",
      +      "vi",
      +      "va",
      +      "wa",
      +      "wv",
      +      "wi",
      +      "wy"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / state / description
      Previous value: -"2-letter jurisdiction code, required for STATE and REGULATION. Case-insensitive."New value: +"2-letter jurisdiction code, required for the state-scoped corpora (STATE, REGULATION, STATE_RULES, STATE_CONSTITUTION). Case-insensitive."
    • removedInput schema / properties / state / enum
      Removed value: -[
      -  "al",
      -  "ak",
      -  "az",
      -  "ar",
      -  "ca",
      -  "co",
      -  "ct",
      -  "de",
      -  "dc",
      -  "fl",
      -  "ga",
      -  "hi",
      -  "id",
      -  "il",
      -  "in",
      -  "ia",
      -  "ks",
      -  "ky",
      -  "la",
      -  "me",
      -  "md",
      -  "ma",
      -  "mi",
      -  "mn",
      -  "ms",
      -  "mo",
      -  "mt",
      -  "ne",
      -  "nv",
      -  "nh",
      -  "nj",
      -  "nm",
      -  "ny",
      -  "nc",
      -  "nd",
      -  "oh",
      -  "ok",
      -  "or",
      -  "pa",
      -  "pr",
      -  "ri",
      -  "sc",
      -  "sd",
      -  "tn",
      -  "tx",
      -  "ut",
      -  "vt",
      -  "va",
      -  "wa",
      -  "wv",
      -  "wi",
      -  "wy"
      -]
    • addedInput schema / properties / subchapter
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "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.",
      +  "examples": [
      +    "II"
      +  ]
      +}
    • addedInput schema / properties / subdivision
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "U.S. Code only: the subdivision to list (`kind: subdivision`, Title 54). Needs the `division` it belongs to.",
      +  "examples": [
      +    "1"
      +  ]
      +}
    • addedInput schema / properties / subjectGroup
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "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.",
      +  "examples": [
      +    "Rules of General Application"
      +  ]
      +}
    • addedInput schema / properties / subpart
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "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.",
      +  "examples": [
      +    "A"
      +  ]
      +}
    • addedInput schema / properties / subtitle
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "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).",
      +  "examples": [
      +    "A"
      +  ]
      +}
    • addedInput schema / properties / title
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "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`.",
      +  "examples": [
      +    "5"
      +  ]
      +}
    • changedInput schema / properties / titleNumber / anyOf
      Previous value: -[
      -  {
      -    "minimum": 1,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "minimum": 1,
      +    "type": "integer"
      +  },
      +  {
      +    "enum": [
      +      "5a",
      +      "18a"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / titleNumber / description
      Previous value: -"USC/CFR title number to drill into."New value: +"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)."
    • addedInput schema / properties / umbrella
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "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`.",
      +  "examples": [
      +    "10"
      +  ]
      +}
  2. Changed6 schema fields changedv0.4.0
    • removedInput schema / properties / chapter / title
      Removed value: -"Chapter"
    • removedInput schema / properties / code / title
      Removed value: -"Code"
    • removedInput schema / properties / corpusType / title
      Removed value: -"Corpustype"
    • removedInput schema / properties / part / title
      Removed value: -"Part"
    • removedInput schema / properties / state / title
      Removed value: -"State"
    • removedInput schema / properties / titleNumber / title
      Removed value: -"Titlenumber"
  3. Addedv0.2.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, it discloses billing semantics (a non-fitting filter is a 422 before any charge; an empty level is refunded), pagination (`nextCursor`), and data quirks (a listing can mix kinds; `name` is null when the publisher prints no heading). These are operational facts the annotations do not carry.

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

Conciseness5/5

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

Three sentences, front-loaded with the core drill-down behavior, then the node-to-filter rule, then edge cases and billing. No filler or restatement of the title; every clause carries information the agent needs.

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?

For a 22-parameter hierarchical browser with an output schema, the description covers the traversal model, termination condition, pagination, and error/refund behavior. What it leaves implicit — which parameter combinations apply per corpus type — is fully documented in the schema descriptions, so the remaining gap is small.

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 baseline is 3, but the description adds a genuine conceptual rule absent from the schema: the filter parameter to use is determined by the returned node's `kind`, and identifiers must be passed back verbatim. That mapping rule is the key to using 22 parameters correctly, though individual level semantics remain schema-owned.

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?

The first sentence names a specific verb and resource — walk the statutory hierarchy, listing the level directly below the one passed, in statutory order — which is clearly distinct from siblings like get_us_statute_section or count_statute_sections. An agent can tell this is a structural drill-down lister, not a content fetcher or counter.

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?

The description gives an explicit navigation loop: read `level` and each node's `kind`, then pass its `identifier` back as the filter that kind names, repeating until `isLeaf` is true and `actId` is set. It also states pagination behavior via `nextCursor`, but never names or contrasts a sibling tool for cases where the agent wants section text instead of structure.

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