Skip to main content
Glama

Compare jurisdictions

compare_jurisdictions
Read-onlyIdempotent

Get one rule type across jurisdictions in one call, each entry in the same shape as get_rule. Example: {"rule_type": "minimum_wage", "jurisdictions": ["us-wa", "us-or", "us-ca"]}. Without jurisdictions, every state and province (or the level you name) is returned: about 3 KB each, 50+ entries. Entries are never merged or ranked. Each entry's page_url is that jurisdiction's juriset.dev page for people. Informational only, not legal advice. as_of needs an API key whose plan includes as-of queries.

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

Input Schema

NameRequiredDescriptionDefault
as_ofNoA date, `YYYY-MM-DD`, instead of today.
levelNoInstead of `jurisdictions`: every jurisdiction at these levels, e.g. `["state", "province"]` (the default).
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`.
jurisdictionsNoUp to 100 jurisdiction slugs, any level, e.g. `["us-wa", "us-or", "us-ca"]`. Not with `level`.

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 cover read-only, idempotent, non-destructive safety, and the description adds substantial context beyond that: results are never merged or ranked, each entry is ~3 KB with 50+ entries when unfiltered, page_url points to a human-facing page, and as_of requires a specific API key plan. The informational-only/not-legal-advice note further sets expectations.

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-loads the core purpose and the example payload, then layers defaults, output traits, and auth notes. Dense but each clause carries information; the 'informational only, not legal advice' boilerplate is the only mildly expendable line.

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?

With no output schema, the description compensates by describing the return shape (same as get_rule), per-entry size and approximate volume, and the no-merge/no-rank guarantee. Combined with auth notes for as_of, an agent has everything needed to call and interpret results.

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, but the description goes further by showing a concrete payload example and clarifying the semantics of omitting jurisdictions (defaults to all states/provinces at the named level) and the mutual exclusivity with level. It adds meaning beyond the schema's field-level text.

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 one rule type across jurisdictions in one call') and explicitly differentiates from the sibling get_rule by saying each entry has the same shape. An agent can immediately tell this is the batch/multi-jurisdiction counterpart to get_rule.

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?

Clearly explains the two modes: pass jurisdictions for a targeted set, omit it to get every state and province (or the named level). It also flags the as_of prerequisite (API key with as-of plan) and that jurisdictions and level are mutually exclusive. It doesn't explicitly say when to prefer this over get_rule or get_rule_as_of, so not a 5.

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.