Skip to main content
Glama

Turn a title into a URL slug

generate-slug
Read-onlyIdempotent

Produce Unicode-aware slug from a title. Use when creating an SEO-friendly path segment from a title. To check an existing full URL, use is-url-safe instead. Transliterates/normalizes text locally; verify preferred slugs before publishing permanent URLs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesSource title to normalize, such as Café startups!.
maxLengthNoMaximum slug length, 1–160 characters; omit for the upstream default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / maxLength / description
      Added value: +"Maximum slug length, 1–160 characters; omit for the upstream default."
    • addedInput schema / properties / text / description
      Added value: +"Source title to normalize, such as Café startups!."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real value beyond them: it discloses that transliteration/normalization happens locally and warns to verify preferred slugs before publishing permanent URLs, a behavioral caveat not present in the structured fields.

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

Conciseness5/5

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

Three short sentences, all front-loaded: what it does, when to use it, then the sibling exclusion and behavioral caveat. No sentence is filler.

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 simple pure-function generator with 100% schema coverage and no output schema, the description is nearly complete: it names the output (Unicode-aware slug) and the local-processing behavior. It stops short of describing edge-case output (e.g. truncation at maxLength or empty input), which leaves a small gap.

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% and the schema already documents both `text` (with a Café example) and `maxLength` bounds, so the description carries no additional parameter syntax or format detail. Baseline 3 is appropriate when the schema does the heavy lifting.

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 ('Produce Unicode-aware slug from a title') and immediately scopes it against the sibling is-url-safe, so an agent can distinguish it from the other generate-* tools without opening a schema.

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

Usage Guidelines5/5

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

Gives an explicit trigger ('Use when creating an SEO-friendly path segment from a title') and names the alternative for the adjacent case ('To check an existing full URL, use is-url-safe instead'), which is the exact when/when-not/alternative pattern that routes correctly.

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