Skip to main content
Glama

Unicode Escape/Unescape

UnicodeEscapeUnescape
Read-only

Unicode Escape/Unescape: Unicode Escape/Unescape converts text into Unicode escape sequences or restores escaped strings back into readable characters. Send any string to get the transformed text and total character count. (Cost: 1 credit)

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": "UnicodeEscapeUnescape"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text to escape
actionNoThe action to performescape

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNoError message, null on success
statusNo"ok" on success

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, and destructiveHint=false, so safety is covered. The description adds useful behavioral context beyond the annotations: it states the cost is 1 credit and that the result includes transformed text plus a total character count.

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 description is short and front-loaded, with the conversion purpose stated immediately and the cost placed at the end. It contains minor redundancy by repeating the tool name/title at the start, but otherwise every sentence is useful.

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 two-parameter text transformation tool with an output schema and read-only annotations, the description covers purpose, both modes, input expectation, output summary, and credit cost. It could be slightly more complete by naming when to use it versus sibling encoders, but it is sufficient to invoke correctly.

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 description coverage is 100%, so the schema already documents both parameters. The description clarifies that the action selects between escaping and unescaping, which adds some meaning beyond the vague schema description 'The action to perform', but it does not add syntax or enum details.

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 states a specific verb and resource: it converts text into Unicode escape sequences or restores escaped strings to readable characters. It is clear what the tool does, but it does not differentiate itself from sibling encoders/decoders such as HTML entities or URL encoders.

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 implies usage by saying 'Send any string' and explaining the two conversion directions, but it gives no explicit when-to-use guidance or alternatives. It does not say when to choose this tool over sibling text-transform utilities.

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.