Skip to main content
Glama

Turn a title into a URL slug

generate_url_slug
Read-onlyIdempotent

Turn a title into a short, clean URL slug: lower case, hyphens, small words left out, cut at a whole word to a length you choose. Answers the slug with its length and notes. Answers from what you send alone: nothing is fetched or stored.

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": {
      "title": "<title>"
    },
    "name": "generate_url_slug"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNoLongest slug, in characters Optional.
titleYesTitle
keepStopWordsNoKeep small words (a, the, to, in)

Output Schema

NameRequiredDescriptionDefault
toolYes
toolUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered; the description goes further by asserting "nothing is fetched or stored" and by spelling out the normalization algorithm (case folding, hyphens, stop-word removal, whole-word truncation). It also previews the answer shape (slug plus length plus notes), which is useful context even though an output schema exists.

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?

Two tightly packed sentences with the core transformation front-loaded and the purity guarantee second; every clause carries information and there is no 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 three-parameter pure function with rich annotations and a declared output schema, the description supplies everything essential: rules, purity, truncation semantics, and return shape. Only defaults and the meaning of the returned "notes" are left unstated, which is a minor gap.

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%, so a 3 is the floor; the description earns more by explaining that the length cap cuts "at a whole word" (a behavioral constraint the schema's "Longest slug, in characters" does not convey) and by glossing keepStopWords as "small words left out" (a, the, to, in). It stops short of stating defaults for max or keepStopWords.

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 a title into a short, clean URL slug") and immediately enumerates the transformation rules — lower case, hyphens, stop words dropped, whole-word truncation. Nothing in the sibling list performs this same transformation, so an agent can identify it without ambiguity.

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?

The description makes the use case self-evident but never states when to reach for this tool versus a neighbor such as check_show_hn_title or analyze_headline, nor any exclusions. Usage is only implied by the stated purpose.

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