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

Vaquill-AI/vaquill-mcp

Official
by Vaquill-AI

Adjacent Sections

get_section_neighbors
Read-only

Retrieve the sections immediately before and after a legal provision in statutory order to read it in context, locate sibling definitions or penalties, and check whether operative language continues.

Instructions

The sections immediately before and after a given section within its own chapter or code, in statutory order. Use to read a provision in context, to find a definitions or penalties sibling, or to check whether the operative language continues into the next section.

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": {
      "act_id": "<act_id>"
    },
    "name": "get_section_neighbors"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many sections to return on EACH side.
act_idYesSection identifier, e.g. `USC_T42_C21_S1983` (Title 42, Chapter 21, Section 1983, written 42 U.S.C. 1983). Take it from a search result rather than assembling it: the title and section are derivable from a citation but the CHAPTER is not, so hand-built ids usually 404.
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.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field 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"
      +  ]
      +}
  2. Changed3 schema fields changedv0.4.0
    • changedInput schema / properties / act_id / description
      Previous value: -"Section identifier. Encodes the citation's hierarchy: `USC_T42_C21_S1983` is Title 42, Chapter 21, Section 1983, the section a lawyer writes as 42 U.S.C. § 1983. Take it from a `/us/statutes/search` result rather than assembling it: the title and section are derivable from a citation, but the CHAPTER is not, so hand-built ids usually 404."New value: +"Section identifier, e.g. `USC_T42_C21_S1983` (Title 42, Chapter 21, Section 1983, written 42 U.S.C. 1983). Take it from a search result rather than assembling it: the title and section are derivable from a citation but the CHAPTER is not, so hand-built ids usually 404."
    • removedInput schema / properties / act_id / title
      Removed value: -"Act Id"
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
  3. Addedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered by structured data. The description still adds real behavioral content: results are confined to the same chapter/code and returned in statutory order, which tells the agent the ordering and the boundary of the result set. It stops short of saying what happens at chapter edges (whether one side is empty or truncated), which is the remaining behavioral unknown.

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?

Two sentences: the first defines the output and its ordering, the second enumerates use cases. The definition is front-loaded and every clause carries information; no restatement of the name or title.

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?

An output schema exists and the input schema is fully documented, so return format and parameter details needn't be repeated here. The description covers purpose, ordering, and use cases adequately for a straightforward adjacency lookup; the only shortfalls are silent behavior at chapter boundaries and no routing advice against the definitions-specific sibling.

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 description coverage is 100%, including the notable 'on EACH side' semantics of limit and a detailed warning about hand-built act_id values 404ing, so the schema carries the parameter burden. The description's 'before and after' phrasing is consistent with the symmetric limit but adds no format, default, or boundary detail beyond what the schema states. Baseline 3 applies.

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 resource and scope: the sections immediately before and after a given section, restricted to its own chapter or code, in statutory order. That scope clause ('within its own chapter or code') is what separates it from broader retrieval tools such as get_section_cross_state or get_us_statute_section_text, so an agent can identify it without opening the schema.

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?

Gives three concrete motivations for use (reading a provision in context, finding a definitions or penalties sibling, checking continuation of operative language), which is better than a bare 'when to use' statement. However, it names no alternative tools and does not address the obvious overlap with the sibling get_section_definitions or explain when reading the full text via get_us_statute_section_text is preferable to walking neighbors.

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