Skip to main content
Glama

Dominio a ASCII (Punycode)

punycode-encode
Read-onlyIdempotent

Convierte un dominio internacionalizado a ASCII (Punycode, prefijo xn--). Cuándo: hay que convertir bytes o texto a esta codificación, o desde ella, con exactitud y sin adivinar. No para: convertir etiquetas Punycode xn-- de un dominio a Unicode (punycode-decode). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Converts an internationalized domain name to ASCII: lowercases and NFC-normalizes each label, then applies Punycode (RFC 3492) with the xn-- prefix. Does not apply full UTS #46 mapping. When: bytes or text have to be converted to or from this encoding exactly, without guessing. Not for: converting xn-- Punycode labels of a domain back to Unicode (punycode-decode). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
domainYesDomain name or single label (string; required; up to 253 chars).

Output Schema

NameRequiredDescriptionDefault
asciiNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / domain / examples
      Added value: +[
      +  "münchen.de"
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Converts an internationalized domain name to ASCII: lowercases and NFC-normalizes each label, then applies Punycode (RFC 3492) with the xn-- prefix. Does not apply full UTS #46 mapping. When: bytes or text have to be converted to or from this encoding exactly, without guessing. Not for: converting xn-- Punycode labels of a domain back to Unicode (punycode-decode). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB."
  3. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already state readOnlyHint, openWorldHint=false, idempotentHint and destructiveHint, so the safety profile is covered. The description still earns credit for adding real context beyond them: lowercase + NFC normalization per label, no full UTS #46 mapping, determinism, and hard limits (64 KB input, 1 s, 1 MB output). Score held at 3 rather than higher because the 'to or from this encoding' phrasing creates internal ambiguity about the direction of the transform.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is front-loaded and the scoping sentence precedes the exclusion, which is good structure. But the text is duplicated ES/EN inside a single description and ends with a dangling meta-artifact ('[EN completo / full EN: inputSchema.description]') that repeats the schema description verbatim rather than adding anything.

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?

Output schema exists, so return values need not be explained. Combined with annotations plus the normalization, determinism and resource-limit disclosures, an agent has everything needed to call this correctly and to know it will not hit the network or mutate state.

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% and the single 'domain' parameter already documents type and 253-char max, so the baseline is 3. The description adds meaning the schema lacks: that each label is lowercased and NFC-normalized before Punycode, which tells the agent mixed-case or decomposed-Unicode input is acceptable rather than an error.

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?

Names a concrete verb and resource ('Convierte un dominio internacionalizado a ASCII (Punycode, prefijo xn--)') and specifies the exact algorithm (RFC 3492) plus normalization steps, which distinguishes it cleanly from punycode-decode and from generic encoding tools.

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?

Explicit 'When' clause and an explicit 'Not for' clause naming the sibling punycode-decode, which is exactly the routing information an agent needs. However, the 'When' text says inputs must be converted 'to or from this encoding', which blurs the boundary the 'Not for' sentence just drew, since decoding is a different tool.

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