Skip to main content
Glama

Duo Data Utilities: IBAN, VAT, ISIN Validation API

Slug generator: Unicode-aware URL slug with transliteration

slug_generate
Read-onlyIdempotent

Slug generator: turn arbitrary text into a URL-safe slug. Decomposes accents, transliterates German umlauts, Scandinavian and Turkish letters, the ligatures that lose meaning under plain NFD, and Cyrillic (Russian, Ukrainian, Belarusian, Bulgarian, Serbian, Macedonian; language from lang or inferred from the letters). Lowercases, collapses separators, truncates on a word boundary. Returns the slug plus what was removed. 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": {
      "text": "<text>"
    },
    "name": "slug_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNoMaximum slug length 1-512, default 96. Truncates at the last complete word. Accepted: integer 1-512.
caseNolower (default), preserve or upper. Accepted: lower, preserve, upper.
langNoISO 639-1 code for locale-sensitive folding (de: ü->ue) and the Cyrillic table (ru, uk, be, bg, sr, mk). Default locale-neutral; for Cyrillic the language is then inferred from letters unique to Ukrainian, Belarusian, Serbian or Macedonian, else Russian BGN/PCGN letters with ISO 9 (accents folded) for the rest. Accepted: an ISO 639-1 language code.
textYesText to slugify, at most 2048 characters. Accepted: at most 2048 characters.
separatorNoSeparator: - (default), _, . or empty. Accepted: -, _, . or empty.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 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 / max / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / max / type
      Removed value: -"string"
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Goes well beyond the readOnly/idempotent annotations: it discloses that the response includes "the slug plus what was removed" and, critically, that each successful call costs $0.05 via x402 USDC on Base — a payment precondition an agent cannot learn from annotations or schema. Minor gap: it does not spell out the shape of the "removed" field or failure behavior.

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 core purpose is front-loaded in the first sentence, with behavior and pricing following in a logical order. The long Cyrillic language enumeration is dense but arguably load-bearing; still, it is the one stretch that could be trimmed for selection purposes.

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 five-parameter, no-output-schema transform tool, the definition covers input constraints, transformation semantics, return content ("slug plus what was removed"), and the payment requirement. Only the exact return structure and error modes remain unspecified, which is a modest gap given no output schema exists to cover it.

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 coverage is 100%, so all five parameters are already documented, including the lang folding rules and truncation. The description mostly restates that ground (accent decomposition, umlaut/Cyrillic tables, word-boundary truncation) and adds only the framing that language may be "inferred from the letters" — which the schema also states. Baseline 3 is appropriate.

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 ("turn arbitrary text into a URL-safe slug") and immediately scopes the transformation: accent decomposition, umlaut/ligature transliteration, Cyrillic handling, lowercasing, separator collapse, word-boundary truncation. This clearly separates it from siblings like cyrillic_transliterate (Cyrillic-only) and punycode_convert (domain encoding).

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 by the enumerated capabilities, but the description never says when to choose this over cyrillic_transliterate or punycode_convert, nor any precondition beyond the payment note. An agent must infer that this is the general-purpose option and the others are narrow converters.

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.