Skip to main content
Glama

Get the current rule

get_rule
Read-onlyIdempotent

Get the rule in force today for one rule type in one jurisdiction, with its citation: source URL, verbatim excerpt and the snapshot Juriset stored. Example: {"rule_type": "minimum_wage", "jurisdiction": "us-wa"}. The response is the API's: data holds the values (described by the JSON Schema at schema_url), effective_from and verified_at date them, id is the version id to record with any decision that relies on it (see resolve_version), and verification says which models extracted and checked it and whether a person reviewed it. verified_at is when the sources were last re-fetched and found unchanged, not the review date (verification.reviewed_at); it is null until a newly fetched source has been re-checked once. Read data with its schema: optional fields carry defaults there, e.g. a minimum_wage tier or exception without per_unit is per hour. Where levels stack (e.g. US federal and state overtime) every level comes back as its own entry in layers; Juriset never merges them. page_url is the rule's page on juriset.dev, written for people: the values, every level, the official sources, the change history and a free email alert when the rule changes. It is the link for a person who asked about the rule (the other URLs are for programs). Informational only, not legal advice (disclaimer).

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

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.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description goes well beyond them: it explains the response envelope keys, that verified_at means sources were re-fetched unchanged rather than reviewed, why it is null on first fetch, that stacked levels are returned unmerged in layers, and the disclaimer posture. These are exactly the non-obvious traits an agent needs before relying on the result.

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?

Purpose and example are front-loaded, then the response semantics follow in a logical order. It is dense and long for a three-parameter read tool, and the verified_at vs. reviewed_at sentence is packed tightly, but each sentence carries substantive, non-redundant information.

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?

There is no output schema, so the description must carry the return-value burden, and it does: it enumerates data, effective_from, verified_at, id, verification, layers, page_url and disclaimer, and explains how to interpret them. For a read tool of this complexity, an agent has everything needed to call it and correctly use the result.

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 the baseline is 3; the description adds real value by showing a full example invocation, naming example slugs for rule_type and jurisdiction, and explaining that data must be read against schema_url where optional fields carry defaults (e.g. per_unit absent means per hour). The optional `domain` parameter is not mentioned in the prose, which keeps it just below a 5.

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 opens with a specific verb, resource and scope: 'Get the rule in force today for one rule type in one jurisdiction, with its citation.' The 'in force today' qualifier implicitly separates it from get_rule_as_of and get_rule_history, and the concrete example call makes the contract unambiguous.

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 of retrieving the currently effective rule for one type and jurisdiction, and points the reader to resolve_version when a decision relies on the version id, plus distinguishes page_url for people vs. other URLs for programs. It never states an explicit exclusion such as 'use get_rule_as_of when you need a past date', so the alternative routing is only implied by 'in force today'.

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.