Skip to main content
Glama

encode

Encodes/decodes text: base64, base64url, hex, URL-encoding, HTML entities; op=encode or decode (all encodings returned by default). Costs 0.01 USDC on Base via x402, or 12 sats Cashu ecash (NUT-24), or 12 sats over Lightning (L402).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
opNo
textYes
formatNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full behavioral burden, and it does disclose the critical payment requirement plus three accepted payment rails (x402 USDC on Base, Cashu NUT-24, L402 Lightning), which prevents failed calls. It stops short of stating whether the operation is stateless, whether input is retained, or how invalid encodings fail.

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 sentences, purpose and supported formats front-loaded, with parameter semantics before the cost note. No filler or repetition, and the dense payment clause is genuinely load-bearing.

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?

With no annotations, no output schema, and no parameter descriptions, the description still covers purpose, formats, op semantics, default output, and payment requirements. The remaining gap is the return shape and error behavior, which is minor but non-trivial for a tool with no output schema.

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 0% across three parameters, so the description must compensate. It clarifies the op parameter's accepted values and implies format selects a single encoding while the default returns all, but it never explains the legal values of format or how text is interpreted, leaving the format parameter under-specified.

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 concrete verb pair (encodes/decodes) on a concrete resource (text) and enumerates the exact encodings supported (base64, base64url, hex, URL-encoding, HTML entities), which cleanly separates it from unrelated siblings like hash or convert. An agent knows precisely what this tool does without opening the schema.

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?

It explains the op parameter's two values and the default behavior (all encodings returned when none specified), which implies how to call it. However, it names no alternative sibling and gives no when-not-to-use or precondition guidance beyond defaults.

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