Skip to main content
Glama

ISO 3166 code to UnGovr jurisdiction

resolve_jurisdiction
Read-only

Maps an ISO 3166 code to the UnGovr jurisdictions whose law reaches the place, from the published crosswalk (https://data.ungovr.org/v1/crosswalk/iso-3166/index.json, CC BY 4.0). Accepts a country (FR, PR, EU, XK), a first-level subdivision (US-CA, GB-ENG), or the country and region an edge emits as two arguments (country US, region CA). Returns the canonical URN, the stack of governing layers (the place, its sovereign, a union or treaty area that reaches it), OCD-ID, Wikidata QID, precision, a reason when a code cannot be placed, and the crosswalk version. It maps what an edge already knows: it never resolves an IP address (those are refused and not echoed), a city or a postal code, and Cloudflare's XX and T1 answer with a reason, not a guess. Free, rate-limited per IP.

Input Schema

NameRequiredDescriptionDefault
codeYesAn ISO 3166 code ("US-CA", "FR"), or the country when region is given ("US"). Never an IP address.
regionNoOptional. The region an edge sent beside the country: "CA" or "US-CA". An empty string means the edge sent none and the answer is at country precision.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld annotations: discloses the upstream data source and license, that results carry a crosswalk version, that failures return a reason rather than a guess, that IPs are refused and not echoed back, and that calls are free but rate-limited per IP. That is exactly the operational context annotations cannot carry.

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 mapping and the accepted inputs before the exclusion list, with no filler sentences. Slightly dense and includes publisher/license provenance that an agent rarely needs, but it is still a compact two-sentence block.

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, so the description enumerates the return payload itself: canonical URN, governing-layer stack, OCD-ID, Wikidata QID, precision, failure reason, and crosswalk version. Combined with the refusal semantics, nothing an agent needs to call this correctly 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. The description adds real meaning beyond the schema by explaining the two-argument edge pattern (country 'US' plus region 'CA') and the three accepted code forms, clarifying how the two parameters interact rather than just restating them.

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 (maps) and resource (ISO 3166 code → UnGovr jurisdiction), and explicitly scopes itself against the similar-sounding resolve_domain_jurisdiction by listing what it will not resolve (IP addresses, cities, postal codes). An agent can pick between this and list_countries without opening either 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 clear usage context: accept-country, subdivision, or country+region pairs, and explicit exclusions (IPs refused, city/postal unsupported, XX/T1 return a reason). It stops short of naming sibling tools as alternatives, so the routing guidance is present but not fully explicit.

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