Skip to main content
Glama

Crypto, web, finance and app data tools

Encode / Decode

encode_decode

Encode or decode text: base64, base64url, hex, URL percent-encoding, HTML entities, ROT13, binary, Unicode escapes and punycode, or detect to try decoding unknown input.

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

Input Schema

NameRequiredDescriptionDefault
textYes
operationNobase64_encode

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It conveys that this is a repertoire of reversible local conversions (base64, hex, ROT13, punycode, etc.), which implies a pure transformation with no side effects, but it never states that explicitly nor describes error behavior on malformed input. The presence of an output schema lowers the need to explain return values.

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?

A single dense sentence that front-loads the verb and immediately enumerates capabilities — no filler. It is arguably too compressed, packing the one usage hint into the tail of the same sentence rather than giving it room.

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

Completeness3/5

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

For a two-parameter tool with an output schema, the description does enough to identify the domain, but the critical invocation detail — how to spell `operation` — is absent from both schema and description. Sibling disambiguation against hash_text and jwt_decode is also missing, leaving meaningful ambiguity.

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%, so the description must compensate for both parameters. It never mentions the `operation` parameter by name, its default ('base64_encode'), or the naming convention used to combine a format with encode/decode (e.g. 'hex_decode' vs 'hex'). The format list hints at valid values but an agent cannot reliably construct them from the text.

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?

States a specific verb (encode/decode) and resource (text) and enumerates the supported encodings, so the tool's domain is unmistakable. It does not differentiate from nearby siblings such as hash_text, jwt_decode, decode_calldata, or json_tools, which an agent could plausibly confuse for similar-looking transformations.

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 phrase 'or detect to try decoding unknown input' gives one concrete usage hint for ambiguous cases, which is genuinely useful. However there is no guidance on when to pick this over hash_text or jwt_decode, and no statement of what happens with an unsupported or mismatched encoding.

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