Skip to main content
Glama

encode

encode

Base64/URL/Hex/HTML/JWT encode+decode (200 sats/call; free tier 100 calls/mo)

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": {
      "input": "<input>",
      "action": "<action>"
    },
    "name": "encode"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesText or token string.
actionYesOperation to perform.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.8/5.0
Behavior3/5

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

Annotations only declare openWorldHint=true, so the description carries most of the burden. It does add genuinely useful behavioral context not present in annotations — a per-call price of 200 sats and a 100 calls/mo free tier — but says nothing about error behavior, output shape, or whether decode returns plain text versus structured data.

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

Conciseness3/5

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

It is a single front-loaded clause with no filler prose, which is good. However, the parenthetical spends the entire remaining budget on pricing rather than operational guidance, so the brevity comes at the cost of usefulness rather than from efficiency.

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?

With two required parameters, no output schema, and minimal annotations, the description should clarify what each operation returns (particularly jwt_decode, which yields structured data rather than plain text) and correct the mismatch between the advertised codecs and the actual enum. Neither gap is addressed.

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 coverage is 100% with a fully enumerated action field, so the schema already does all the work. Worse, the description's enumeration does not match the enum: it advertises HTML encode/decode and JWT encode+decode, while the schema only offers jwt_decode and no HTML operations at all, which could lead an agent to request unsupported actions.

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 the specific verb pair (encode+decode) and enumerates the supported codecs (Base64/URL/Hex/HTML/JWT), which is enough for an agent to understand the resource. It stops short of distinguishing this from nearby siblings such as hash, ascii, or data_convert, so sibling disambiguation is left implicit.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance; the only routing-relevant content is pricing. An agent gets no help deciding between this tool and hash, ascii, data_convert, or similar siblings, nor any precondition for choosing decode versus encode paths.

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