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

TableJSON 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?

Annotations declare readOnlyHint=true and openWorldHint=false, but the description adds substantial context beyond that: it lists the returned fields (canonical URN, governing layers, OCD-ID, Wikidata QID, precision, reason, version), states that IP addresses are refused and not echoed, and mentions the rate limit. This is rich behavioral detail that annotations alone do not provide.

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?

The description is front-loaded with the core purpose and includes important exclusions. However, it is somewhat lengthy and could be tightened; every sentence is informative but some details (e.g., the license) could be trimmed.

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?

Given the absence of an output schema, the description fully explains the return values and edge cases. For a read-only tool with clear annotations and high schema coverage, the description is complete and leaves no gaps for an agent to call it correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents both parameters. The description adds a few examples (FR, PR, EU, XK, US-CA, GB-ENG) and explains that country and region can be sent as two arguments, but it does not introduce new semantics beyond what the schema provides. Baseline 3 is appropriate when schema does the heavy lifting.

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?

State a specific verb (maps) and resource (ISO 3166 code to UnGovr jurisdictions), and names the source crosswalk. It clearly distinguishes itself from sibling tools like resolve_domain_jurisdiction, which handles domains rather than codes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use this tool (mapping what an edge already knows) and when not to use it (never resolves IP addresses, cities, postal codes). It also notes that Cloudflare's XX and T1 return a reason, not a guess.

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