Search North Carolina (NC) statutes by topic or keyword
search_statutesSearch North Carolina (NC) statutes by topic, keyword or phrase.
Use this when you know the SUBJECT but not the citation — "what's the NC law about leaving a dog in a hot car", "failure to appear penalty", "when can I expunge a misdemeanor". If you already have a citation, use get_statute instead.
Returns ranked sections with highlighted fragments showing why each matched, not full text: pick the one you want and call get_statute for it.
Supports quoted "exact phrases", -excluded terms and or. match_mode says how the
query was read: "all_terms" (every word), "all_terms_with_synonyms" (every word, but the
words as typed matched nothing or only weakly, so statutory synonyms were accepted —
"car" for "motor vehicle", "leaving" for "confined"; listed in synonyms_used),
"any_of" (the query used or), "any_terms" (nothing matched every word, so any word or
synonym was accepted) or "citation" (the query was a bare citation, so it was looked up
directly; when the section doesn't exist, the nearest real sections by number come back
as suggestions).
The loose modes only return sections that contain at least one of your words. Results
are ordered by terms_matched — how many of the search words a section contains, a
quoted phrase counting only when it appears as a phrase — then by
catchline_terms_matched, how many are in the section's own heading, then by
catchline_coverage, how much of that heading the search words make up (1.0 is an
exact title, so "DWI" finds "Impaired driving" before longer sections that merely
mention it), then by rank. Court shorthand is expanded
automatically and case-insensitively — FTA, DWLR, PJC, AWDW and similar become the
statutory wording, because the statute book spells the phrase out and never uses the
abbreviation. The expansion is reported back as expanded_query. Shorthand that names
one offense lists that offense's section first, marked primary_for (FTA → 15A-543,
DWI → 20-138.1).
Searches the law in force today, at section level. A low top rank means the corpus probably has no section on point — NC simply has no statute on some subjects, and saying so is a better answer than the nearest loose word match.
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": {
"query": "<query>"
},
"name": "search_statutes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of sections to return (1-25). | |
| query | Yes | Topic, keyword or phrase. Supports quoted "exact phrases", -excluded terms and `or`. Court shorthand (FTA, DWLR, PJC) is expanded for you. | |
| chapter | No | Only sections in this General Statutes chapter. | |
| include_repealed | No | Also return repealed sections. Off by default, so results are law in force. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||