Skip to main content
Glama

Get the rule on a date

get_rule_as_of
Read-onlyIdempotent

Get the rule that was (or will be) in effect on a date, in the same shape as get_rule. Example: {"rule_type": "minimum_wage", "jurisdiction": "us-wa", "as_of": "2025-06-30"}. Use it to see what applied when a past decision was made. page_url is the rule's juriset.dev page for people, which lists every version. A date before Juriset's coverage of that jurisdiction is answered with an error that says where coverage starts. Informational only, not legal advice. If the API key's plan does not include as-of queries the error says so.

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>",
      "as_of": "<as_of>"
    },
    "name": "get_rule_as_of"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofYesThe date, `YYYY-MM-DD`, past or future.
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/5.0
Behavior3/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 bar is lower. The description does add real behavioral context beyond them: out-of-coverage dates return an error naming the coverage start, plan-gated as-of queries produce a specific error, and a page_url field with per-version listings is exposed. It stops short of describing the result shape beyond 'same as get_rule,' so it is good but not exhaustive.

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 behavior and a motivating example, then error and caveat details in descending priority. Nearly every sentence carries information; the 'Informational only, not legal advice' line is boilerplate but short and arguably necessary given the legal domain.

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

Completeness3/5

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

With no output schema, the description must carry return-value information, and it does so only by reference ('same as get_rule') plus the single page_url field and an error taxonomy. Coverage gating and plan gating are well handled, but an agent still cannot know the response fields without consulting get_rule.

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 worked example `{"rule_type": "minimum_wage", "jurisdiction": "us-wa", "as_of": "2025-06-30"}` adds concrete value by showing how the slugs compose in a real call. It also confirms as_of is past-or-future in prose, reinforcing the schema note. The optional `domain` parameter and its lookup-from-rule-type fallback are left to 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 (get the rule) plus the temporal scoping that makes it distinct ('that was (or will be) in effect on a date'), and explicitly bounds the shape by reference to get_rule. An agent can separate it from get_rule and get_rule_history without opening any schema.

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?

Gives a concrete motivating context: 'Use it to see what applied when a past decision was made.' It also implies the current-state sibling through 'same shape as get_rule,' but never states the inverse exclusion (use get_rule when you want the current rule) or prerequisites such as needing a rule_type from list_rule_types.

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.