Skip to main content
Glama

NC General Statutes

Search North Carolina (NC) Administrative Code rules by topic

search_rules
Read-onlyIdempotent

Search North Carolina Administrative Code (NCAC) rules — state agency regulations — by topic.

Use when you know the subject but not the rule: "how long to file a contested case", "child care staff ratios", "septic permit requirements". Narrow with title ("15A") or chapter ("15A NCAC 18A", or "18A" together with title). If you have a citation, use get_rule instead.

Returns ranked rules with highlighted fragments; read one with get_rule. Results are ordered the same way as search_statutes: by how many search words a rule contains, then how much of its heading they make up, then rank. For the General Statutes the legislature passes, use search_statutes.

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_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of rules to return (1-25).
queryYesTopic, keyword or phrase. Supports quoted "exact phrases", -excluded terms and `or`.
titleNoOnly rules in this NCAC title.
chapterNoOnly rules in this chapter: "15A NCAC 18A", or "18A" together with `title`.
include_repealedNoAlso return repealed and expired rules.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / chapter / description
      Added value: +"Only rules in this chapter: \"15A NCAC 18A\", or \"18A\" together with `title`."
    • addedInput schema / properties / chapter / examples
      Added value: +[
      +  "15A NCAC 18A"
      +]
    • addedInput schema / properties / include_repealed / description
      Added value: +"Also return repealed and expired rules."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of rules to return (1-25)."
    • addedInput schema / properties / title / description
      Added value: +"Only rules in this NCAC title."
    • addedInput schema / properties / title / examples
      Added value: +[
      +  "15A",
      +  26
      +]
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the bar is lower. The description adds real context beyond them: results are ranked with highlighted fragments, the ranking order is specified, and the next step (read one with get_rule) is named. It does not mention the include_repealed default or pagination limits, which keeps it from a 5.

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

Conciseness4/5

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

Front-loaded with purpose, then use case, then narrowing, then alternatives — a logical order with no filler sentences. It is somewhat long for the amount of new information, partly because the title/chapter guidance overlaps the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, yet the description still usefully characterizes the return (ranked rules with highlighted fragments) and the follow-up call. For a 5-parameter, single-required-parameter search tool with full schema coverage, nothing an agent needs to invoke it correctly is missing.

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%, so the baseline is 3. The description reinforces the title/chapter narrowing with concrete values ('15A', '15A NCAC 18A', '18A' with title), but that interplay is already documented in the schema, so it adds little genuinely new meaning.

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 verb and resource ('Search North Carolina Administrative Code (NCAC) rules — state agency regulations — by topic') and explicitly distinguishes itself from two siblings, get_rule and search_statutes. An agent can tell exactly what corpus this queries 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit use case ('when you know the subject but not the rule') with concrete example questions, then routes away: 'If you have a citation, use get_rule instead' and 'For the General Statutes the legislature passes, use search_statutes.' It also explains how to narrow with title/chapter.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources