get_section_neighbors
Retrieve the sections immediately before and after a given statute to get its surrounding statutory context, respecting chapter boundaries and natural ordering.
Instructions
The sections immediately before and after a given section, in statutory order.
Cost: 2 credits. Not-found and failed lookups are not charged.
Reading one section rarely settles a question -- the definitions sit a few sections back and the exceptions a few forward. Search cannot answer "what comes next", because relevance ranking is not statutory order.
Neighbours never cross the containing chapter (or, where a section has no chapter, the containing title or state code), so you get the sections a reader would actually turn to, not the numerically adjacent row from an unrelated part of the corpus.
Ordering is natural, not lexicographic: 9 before 10, 240.9 before
240.10, 1983 before 1983a.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many sections to return on EACH side. | |
| act_id | Yes | 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||