Skip to main content
Glama

NC General Statutes

Diff two versions of a North Carolina (NC) statute

diff_statute
Read-onlyIdempotent

Word-level diff of a North Carolina (NC) statute section between two versions.

mode="pending" compares the text in force against an enacted-but-not-yet-effective variant — use this for "what will change on 1 October". mode="observed" compares versions this database has actually recorded, optionally between two dates.

CANNOT show text from before the ingest's first observation: observed history begins then, so most sections have only one version and return diff: null. For earlier change dates use amendment_history; for pending text use pending_changes.

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": "diff_statute"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo"observed" compares versions this database recorded; "pending" compares today's text with text enacted but not yet in effect.observed
formatNo"unified" (a line diff), "html" (word-level <del>/<ins> markup) or "both".unified
to_dateNoWith mode "observed": the later date (YYYY-MM-DD).
citationYesThe section to diff. Add mode="pending" to compare today's text against an enacted-but-not-yet-effective version.
from_dateNoWith mode "observed": the earlier date (YYYY-MM-DD), compared with the version at to_date. Omit both dates to compare the latest two recorded versions.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 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: +"With mode \"observed\": the earlier date (YYYY-MM-DD), compared with the version at to_date. Omit both dates to compare the latest two recorded versions."
    • addedInput schema / properties / from_date / examples
      Added value: +[
      +  "2026-01-01"
      +]
    • addedInput schema / properties / mode / description
      Added value: +"\"observed\" compares versions this database recorded; \"pending\" compares today's text with text enacted but not yet in effect."
    • addedInput schema / properties / mode / examples
      Added value: +[
      +  "observed",
      +  "pending"
      +]
    • addedInput schema / properties / to_date / description
      Added value: +"With mode \"observed\": the later date (YYYY-MM-DD)."
    • addedInput schema / properties / to_date / examples
      Added value: +[
      +  "2026-10-01"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / citation / examples
      Previous value: -[
      -  "14-78",
      -  "G.S. 14-33"
      -]New value: +[
      +  "14-78",
      +  "G.S. 14-33",
      +  "1A-1, Rule 12"
      +]
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's added value is the ingest-coverage limitation: it cannot show text before the first observation, most sections have only one version, and the call returns diff: null. That failure-mode disclosure is genuinely useful context beyond the structured fields. It stops short of describing response shape in depth, which is acceptable given an output schema exists.

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?

Front-loads the one-line purpose, then groups mode guidance, then the coverage caveat and alternatives. Every sentence carries distinct information; nothing restates the title or the schema verbatim without purpose.

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 read-only diff tool with a full schema and an output schema, the description covers purpose, mode selection, date semantics, alternatives, and the main empty-result case. An agent has everything needed to decide whether to call it and how to interpret a null diff.

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 coverage is 100% and the schema already documents mode, format, from_date and to_date including defaults and examples, so baseline 3 applies. The description reinforces mode semantics and the optional date range but adds no syntax or format detail the schema lacks.

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 ("Word-level diff of a North Carolina (NC) statute section between two versions") plus the operand (a single section citation). It also splits the operation into two clearly named modes, which lets an agent distinguish it from siblings like get_statute or amendment_history 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 explicit when-to-use guidance per mode ("use this for 'what will change on October'") and names two concrete alternatives with their conditions: amendment_history for earlier change dates, pending_changes for pending text. Exclusions are stated in the negative constraint about pre-observation text.

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