Generate URL-friendly slugs from text with custom separators and transliteration.
Single tool with well-structured schema and clear description. Tool name 'text_generate_slug' follows verb_noun convention. Input schema is complete with types and descriptions for all parameters. Description (194 chars) is within baseline range (p10=34, p90=392) and includes use-case context and anti-patterns (what NOT to use it for). Output structure is implicit but reasonable (slug, original, separator, lowercase, length). Main gaps: no explicit output schema documentation, no error handling guidance for edge cases (e.g., empty text, invalid separators), and no parameter constraints (e.g., max text length, separator validation rules).
Use this when you need to convert text into a URL-friendly slug for web pages, blog posts, or API endpoints. Supports custom separators, lowercase toggle, and transliteration of accented characters. Returns the slug string, original text, and character length. Do NOT use for URL shortening — use utility_shorten_url. Do NOT use for hashing — use crypto_generate_hash.
Output schema not documented. Response structure (slug, original, separator, lowercase, length) is inferred from code, not declared in tool definition. LLMs cannot plan downstream operations without knowing return fields.
No error handling guidance. Code validates separator length and required 'text' field, but tool description does not explain what happens on invalid input or how to recover. LLMs receive raw 400 errors with no actionable next steps.
Parameter constraints not documented. 'text' parameter has no length limits; 'separator' is validated in code (single char) but description does not state this constraint. LLMs may pass multi-char separators or extremely long text.
No idempotency guarantee stated. Tool should be idempotent (same input → same output), but description does not declare this. Agents retrying on ambiguous failures need explicit confirmation that repeated calls are safe.
Inferred effective spec: 2025-06-18+.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 67 | 2025-06-18+ | v2 |
Transliteration behavior not documented. Tool silently converts accented characters (é→e, ñ→n) but description does not explain this transformation or its limitations (e.g., non-Latin scripts). Users may be surprised by output.