{
  "id": "vaquill.us.statutes.count",
  "object": "tool",
  "name": "Count US Statute Sections",
  "summary": "How many sections a scope contains.",
  "description": "Count the sections in a scope without retrieving them: a whole corpus, a jurisdiction, a title, a code, a chapter, a CFR part, or only those carrying a given status. The cheap way to size a job before running it, to check coverage of a jurisdiction you are about to rely on, or to audit how much of a code is repealed. The response says whether the count is exact and echoes the scope it counted. A scope that holds nothing is refunded.\n\nRaw vaquill#us/statutes/count endpoint: input is { body, queryParams, pathParams } as the provider documents them (https://www.vaquill.ai/docs/api-reference/us-statutes/count-the-sections-in-a-scope).",
  "category": "lookup",
  "hosted_by": "Vaquill",
  "runtime": "partner",
  "side_effects": false,
  "status": "live",
  "credits": 0,
  "price": null,
  "providers": [
    {
      "id": "vaquill",
      "name": "Vaquill",
      "price": null,
      "own_key_only": true
    }
  ],
  "mcp_name": "vaquill_us_statutes_count",
  "input_schema": {
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "corpusType": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "USC",
                  "CFR",
                  "STATE",
                  "CONSTITUTION",
                  "FEDERAL_RULES",
                  "STATE_CONSTITUTION",
                  "STATE_RULES",
                  "EXECUTIVE_ACTION",
                  "REGULATION",
                  "FEDERAL_REGISTER",
                  "FEDERAL_REGISTER_NOTICE",
                  "AGENCY_GUIDANCE",
                  "SENTENCING_GUIDELINES",
                  "US_TAX_TREATY",
                  "STATE_AGENCY_GUIDANCE",
                  "STATE_AG_OPINION",
                  "SESSION_LAW",
                  "STATUTE_COMPILATION",
                  "AGENCY_ADJUDICATION",
                  "CFR_ANNUAL",
                  "USC_ANNUAL"
                ]
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "USC",
                    "CFR",
                    "STATE",
                    "CONSTITUTION",
                    "FEDERAL_RULES",
                    "STATE_CONSTITUTION",
                    "STATE_RULES",
                    "EXECUTIVE_ACTION",
                    "REGULATION",
                    "FEDERAL_REGISTER",
                    "FEDERAL_REGISTER_NOTICE",
                    "AGENCY_GUIDANCE",
                    "SENTENCING_GUIDELINES",
                    "US_TAX_TREATY",
                    "STATE_AGENCY_GUIDANCE",
                    "STATE_AG_OPINION",
                    "SESSION_LAW",
                    "STATUTE_COMPILATION",
                    "AGENCY_ADJUDICATION",
                    "CFR_ANNUAL",
                    "USC_ANNUAL"
                  ]
                }
              }
            ],
            "description": "Restrict the count to one body of law, or a list of them."
          },
          "state": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "federal",
                  "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"
                ]
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "federal",
                    "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"
                  ]
                }
              }
            ],
            "description": "Restrict to one jurisdiction, or a list. `federal` means the federal corpora rather than a state."
          },
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ],
            "description": "State code identifier, e.g. `tx_pe`. Pair it with `state`."
          },
          "titleNumber": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "USC or CFR title number."
          },
          "chapter": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ],
            "description": "Chapter identifier. Pair it with `titleNumber` or `code`."
          },
          "part": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ],
            "description": "CFR part identifier. Pair it with `titleNumber`."
          },
          "actStatus": {
            "anyOf": [
              {
                "type": "string",
                "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": "array",
                "items": {
                  "type": "string",
                  "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"
                  ]
                }
              }
            ],
            "description": "Count only sections carrying this status."
          },
          "excludeRepealed": {
            "type": "boolean",
            "description": "Exclude sections whose status is affirmatively dead. A section with no recorded status is kept, because a missing status is not evidence of repeal."
          }
        }
      }
    },
    "required": [],
    "additionalProperties": false
  },
  "kind": "endpoint"
}