Skip to main content
Glama

B2B, AI RAG, Ad Spy, Finance & UAE Real Estate Suite

Multilingual Slugify, Line Diff & HTML Sanitizer

edge_text_diff
Read-onlyIdempotent

Transliterate Cyrillic/Unicode titles into URL slugs, compute line-by-line diffs, or sanitize untrusted HTML. [Price: $0.002 USDC via x402]

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "edge_text_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNo
afterNo
actionNoslugify
beforeNo
separatorNo-

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered by structured data. The description's one genuine addition is the pricing disclosure ($0.002 USDC via x402), which is real behavioral context an agent needs before calling. It omits mode-specific behavior: what the sanitizer strips or allows, how transliteration handles non-Cyrillic characters, what the diff output looks like, and whether inputs are validated per mode.

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?

Two sentences, verb-first and front-loaded with the three modes, with the pricing bracketed at the end so it does not obstruct the core content. No filler or repetition. It could be tighter only by folding the mode-to-parameter mapping into the same list.

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

Completeness2/5

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

This is a five-parameter, zero-required, multi-mode tool with 0% schema coverage and no output schema, which is exactly the case where the description must do heavy lifting. It never explains which parameters each mode requires or what happens if action is omitted, leaving an agent unable to construct a correct call with confidence. Only the pricing detail fills a gap that structured fields did not.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across five parameters, so the description carries the full burden and fails to meet it. It never mentions 'text', 'before', 'after', 'separator', or the 'action' enum values, so the agent cannot tell that slugify uses text+separator while diff uses before+after, or that sanitize uses text. Only the general concepts loosely map to parameter names.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names three concrete operations with specific verbs and resources: transliterating Cyrillic/Unicode titles into URL slugs, computing line-by-line diffs, and sanitizing untrusted HTML. This is far more informative than the tool name 'edge_text_diff', which only hints at the diff mode, so an agent can tell what the tool does overall. It stops short of a 5 because it never clarifies that these are mutually exclusive modes selected by one parameter, nor does it differentiate from any sibling.

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?

Each capability is framed with a use case (slug for titles, diff for comparing lines, sanitize for untrusted HTML), which implicitly tells the agent when each mode applies. However, there is no explicit statement that the 'action' parameter selects the mode, no guidance on which inputs each mode requires, and no exclusions or prerequisites. Usage is implied rather than stated.

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.