Skip to main content
Glama

NC General Statutes

When a North Carolina (NC) Administrative Code rule changed, and how

rule_history
Read-onlyIdempotent

When a North Carolina Administrative Code (NCAC) rule was adopted, amended or repealed, and exactly what changed.

Returns OAH's history events (dated: adopted, amended, temporary or emergency adoption, readopted, repealed, expired, transferred, recodified) and the versions of the text this server has stored, with a word-level diff between two of them — the latest two by default, or the versions in force on from_date and to_date (YYYY-MM-DD). format is "unified", "html" or "both". Stored versions begin with the first weekly crawl, so older changes have dates but no diff.

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": {
      "citation": "<citation>"
    },
    "name": "rule_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNo"unified" (a line diff), "html" (word-level <del>/<ins> markup) or "both".unified
to_dateNoThe later date (YYYY-MM-DD). Defaults to the latest stored version.
citationYesAn NCAC rule citation.
from_dateNoThe earlier date (YYYY-MM-DD): diff the version in force then against the one at to_date. Omit both for the latest two stored versions.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / format / description
      Added value: +"\"unified\" (a line diff), \"html\" (word-level <del>/<ins> markup) or \"both\"."
    • addedInput schema / properties / format / examples
      Added value: +[
      +  "unified",
      +  "html",
      +  "both"
      +]
    • addedInput schema / properties / from_date / description
      Added value: +"The earlier date (YYYY-MM-DD): diff the version in force then against the one at to_date. Omit both for the latest two stored versions."
    • addedInput schema / properties / from_date / examples
      Added value: +[
      +  "2026-11-10"
      +]
    • addedInput schema / properties / to_date / description
      Added value: +"The later date (YYYY-MM-DD). Defaults to the latest stored version."
  2. Added

TDQS

A4.2/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 safety profile is covered. The description adds genuinely useful behavior beyond that: the enumerated OAH event types, the default of diffing the latest two stored versions, and the important limitation that pre-crawl changes carry dates but no diff. That limitation disclosure is the kind of context an agent cannot get from structured fields.

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?

The headline sentence is front-loaded and the follow-up paragraphs each carry a distinct payload (event types, diff behavior, crawl limitation). There is minor redundancy where format's three values are enumerated in both description and schema, but no filler sentences.

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?

For a four-parameter read tool with an output schema and full annotation coverage, the description supplies everything needed: what is returned, how the diff is selected, and the caveat about missing diffs for older changes. No essential calling information 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 all four parameters are already documented, including the from_date/to_date interaction and format values. The description restates the date-pinning semantics and default behavior but adds little syntax or nuance not present in the schema, so the 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?

The description names a specific resource (NCAC rule history) and a specific verb set (adopted, amended, repealed) plus the diff output, so an agent can distinguish it from a current-text getter like get_rule or a generic amendment_history. The title and first sentence align cleanly, leaving no ambiguity about what comes back.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It clearly frames the use case (finding when a rule changed and what changed) and explains the two operating modes - latest-two default versus date-pinned comparison - which tells the agent when to pass from_date/to_date. It stops short of naming when to prefer a sibling tool or when-not to call it, so it is strong context but not full routing guidance.

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