Skip to main content
Glama

util_idn

Read-only

IDN / Punycode converter and homograph check — Convert internationalized domain names both ways and flag lookalikes, offline. domain= one domain or a comma list of up to 50, in Unicode (münchen.de) or ASCII xn-- form; URLs and email addresses are accepted (the host is used). Returns the Unicode and ASCII (Punycode, RFC 3492) forms per label, scripts used, IDNA rule problems (bad punycode, reserved hyphens, non-LDH characters, label over 63 / name over 253 octets, invisible or bidi control characters), mixed-script detection and a Latin confusable skeleton (e.g. xn--80ak6aa92e.com reads as apple.com). Verdict ASCII / IDN OK / SUSPICIOUS / INVALID. Pairs with phishing, email and domain checks. Price: $0.001 USDC (Base, via x402).

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": {
      "domain": "<domain>"
    },
    "name": "util_idn"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesxn--80ak6aa92e.com

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/non-destructive, and the description adds substantial behavior beyond them: processing is offline, results are per-label with Unicode and Punycode forms plus scripts used, the specific IDNA rule violations checked are enumerated (bad punycode, reserved hyphens, non-LDH, 63/253 octet limits, invisible/bidi controls), and the four possible verdicts plus a paid cost of $0.001 USDC via x402 are disclosed. Mutating risk is correctly characterized as absent. The only soft tension is 'offline' against openWorldHint=true, but that reads as 'no network lookup' rather than a contradiction of the safety profile.

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 capability sentence is front-loaded, then input rules, then return shape, then verdict scale, then pricing — a logical order with almost no filler. It is dense and long for a single paragraph, and the parenthetical IDNA error list could be trimmed, but every element carries operational value.

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?

For a one-parameter, read-only converter with no output schema, the description covers what an agent needs: valid input shapes and limits, what comes back (both forms per label, scripts, rule problems, confusable skeleton), the verdict vocabulary, and the cost/authorization requirement. Nothing material is left to inference.

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

Parameters5/5

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

Schema coverage is 100%, but the schema description is merely an example value ('xn--80ak6aa92e.com'), so the description carries real weight by defining the parameter's accepted forms: a single domain or comma list of up to 50, Unicode or ASCII Punycode, and URLs/emails accepted with only the host used. That is meaning an agent could not obtain from the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening clause gives a specific verb pair and resource: 'Convert internationalized domain names both ways and flag lookalikes'. That is far more than a restatement of the name and tells an agent exactly the two capabilities. It stops short of 5 because a sibling named security_idn_check plausibly overlaps and the description never distinguishes itself from it, leaving ambiguity about which IDN tool to call.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: 'Pairs with phishing, email and domain checks' hints at the surrounding workflow, and the accepted-input rules (Unicode or ASCII xn--, URLs/emails reduced to host, up to 50 comma-separated) clarify applicability. There is no explicit when-to-use/when-not guidance, no statement of when to prefer this converter over a dedicated security IDN check, and no prerequisites beyond the offline and price notes.

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