Skip to main content
Glama

Duo Data Utilities: IBAN, VAT, ISIN Validation API

Punycode converter: IDN domain to ASCII and back, with IDNA2008 label validation

punycode_convert
Read-onlyIdempotent

Punycode converter: convert internationalised domain names between Unicode and ASCII punycode in either direction, label by label, and validate each label against IDNA2008: length, leading and trailing hyphens, the hyphen-hyphen rule at positions 3 and 4, disallowed code points and bidirectional rules. Returns both forms, the per-label breakdown and the first rule violated. Strict mode is IDNA2008 (UTS 46 non-transitional); it may reject names /v1/code/url displays. Price: $0.05 per successful call, paid over x402 (USDC on Base).

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": "punycode_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoascii, unicode or both (default). Validated only: the response always carries both forms. Accepted: ascii, unicode, both.
domainYesDomain name in Unicode or punycode form. Accepted: at most 512 characters.
strictNotrue (default) applies IDNA2008 strictly; false uses UTS 46 transitional (IDNA2003-compatible) processing, which maps e.g. ß to ss; current browsers and /v1/code/url use non-transitional processing, so its output can differ from them. Accepted: true or false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / strict / anyOf
      Added value: +[
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "enum": [
      +      "true",
      +      "false"
      +    ],
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / strict / enum
      Removed value: -[
      -  "true",
      -  "false"
      -]
    • removedInput schema / properties / strict / type
      Removed value: -"string"
  2. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety and determinism profile is covered. The description adds genuinely new behaviour the annotations cannot express — the return shape (both forms, per-label breakdown, first rule violated) and per-call pricing of $0.05 over x402 on Base, with charge tied to successful calls. It does not say what happens to a charged call that fails validation, which is the one gap that keeps it at 3.

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-loaded with the core operation, then validation scope, then the strict-mode caveat, then price. Dense and mostly waste-free, though the parenthetical '(UTS 46 non-transitional)' restates what the strict parameter description already says, making the text slightly longer than needed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter read-only tool with full schema coverage and no output schema, the description supplies the return shape, validation behaviour, failure signalling via 'first rule violated', and cost. Only the interaction between payment and a rejected call is left unstated.

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% and each of the three parameters is already documented in detail, including the ß-to-ss mapping example, so the baseline is 3. The description echoes the label-by-label validation and the strict-mode IDNA2008/UTS 46 split but adds little syntax or semantics the schema does not already carry.

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 — converts internationalised domain names between Unicode and ASCII punycode in either direction — plus label-by-label IDNA2008 validation. That combination distinguishes it from generic siblings like url_parse or cyrillic_transliterate without needing to name them.

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 real selection guidance for the main behavioural fork: strict=true is IDNA2008, strict=false is UTS 46 transitional and 'can differ' from browsers and /v1/code/url, which tells the agent when to avoid non-strict mode. It stops short of explicit when-not-to-use-this-tool guidance versus alternatives, keeping it below 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.