Skip to main content
Glama

Get a rule's version history

get_rule_history
Read-onlyIdempotent

List every version ever published of one jurisdiction's rule, with its effective dates, values, citation and whether it is current, superseded or withdrawn. Example: {"rule_type": "minimum_wage", "jurisdiction": "us-wa"}. Covers that jurisdiction's own rule only; other levels that apply (e.g. us) are separate calls. Each entry's id can be passed to resolve_version. page_url is the rule's juriset.dev page for people, with the same history. Informational only, not legal advice.

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": {
      "rule_type": "<rule_type>",
      "jurisdiction": "<jurisdiction>"
    },
    "name": "get_rule_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainNoThe rule type's domain, e.g. `employment`. Optional: when omitted it is looked up from the rule type.
rule_typeYesRule type slug from list_rule_types, e.g. `minimum_wage`, `overtime`.
jurisdictionYesJurisdiction slug from list_jurisdictions, e.g. `us-wa` (Washington), `us` (US federal), `ca-ab` (Alberta).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the supplied annotations (readOnly, idempotent, non-destructive), the description discloses the shape of results — effective dates, values, citation, and the current/superseded/withdrawn status field — plus a `page_url` for human browsing and an 'informational only, not legal advice' disclaimer. It adds real context without restating the annotation hints.

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 the core action and result fields, then scoping, then the resolve_version hand-off. A couple of trailing items (page_url audience note, legal disclaimer) are lower value but short and do not obscure the main instruction.

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?

No output schema exists, and the description compensates by enumerating the returned fields and status values, so an agent knows what it gets back. Combined with the jurisdiction scoping and version-id chaining, nothing essential for correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds genuine meaning for `jurisdiction`: a `us-wa` call returns only Washington's own rule and excludes federal rules that also apply, which the schema's slug example alone does not convey. The inline example call also anchors `rule_type`/`jurisdiction` usage; `domain` remains unaddressed in the description but is documented in the schema.

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 ('List every version ever published of one jurisdiction's rule') plus the fields returned (effective dates, values, citation, status). The scoping sentence ('Covers that jurisdiction's own rule only; other levels that apply (e.g. `us`) are separate calls') makes it distinguishable from current-state and point-in-time siblings like get_rule and get_rule_as_of.

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?

Clear usage context: it names the fallback path ('Each entry's `id` can be passed to resolve_version') and warns that broader jurisdictions are separate calls, which prevents a common misuse. It does not explicitly contrast with get_rule_as_of or get_rule, so the alternative-selection guidance is implied rather than spelled out.

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.