Skip to main content
Glama

util_encode

Read-only

Encode / decode bytes (base32, base58, base62, ascii85, Z85, hex...) — Offline byte codec toolkit. Encode: pass text= (UTF-8) or hex= to get every encoding at once (hex, base32, base32hex, Crockford base32, base36, base58 Bitcoin alphabet, base62, base64, base64url, ascii85, Z85, percent-encoding, binary, decimal bytes) or one with codec=. Decode: pass decode= with codec= (or let it auto-detect) to get the bytes as hex plus UTF-8 text when valid. Up to 8 KB to encode, 20,000 characters to decode. Price: $0.001 USDC (Base, via x402).

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

Input Schema

NameRequiredDescriptionDefault
textYeshello world

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=true), and the description adds real context beyond them: size ceilings (8 KB encode, 20,000 characters decode), the output shape (hex plus UTF-8 text when valid), and the x402 payment of $0.001 USDC on Base. It omits error/failure behavior for invalid input, which keeps it from a 5.

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?

Front-loaded with the verb and the codec family, then structured as Encode: / Decode: / limits / price. The long parenthetical list of encoding names is dense but each item is informative; nothing is padded filler.

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?

Covers return values, limits, and cost well for a tool with no output schema, but the parameter story is internally inconsistent with the schema, so an agent following the description literally would call it incorrectly. Complete on behavior, incomplete on the callable contract.

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?

The description documents hex=, codec=, and decode= in detail, but the input schema declares only a single 'text' property (described merely as 'hello world'), so three of the named parameters do not exist in the structured contract. With 100% schema coverage the baseline would be 3, but the description actively points the agent at parameters that will fail validation, which is worse than saying nothing.

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 specific verb+resource ('Encode / decode bytes') and enumerates the codec family (base32, base58, base62, ascii85, Z85, hex), which clearly separates it from narrow siblings like util_base64 or util_checksum. An agent can tell what it produces 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 Guidelines4/5

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

Gives explicit branch guidance: pass text= or hex= to get every encoding at once, or pick one with codec=; for the reverse direction pass decode= with codec= or let it auto-detect. It never names a sibling tool as the alternative, so routing versus util_base64/util_checksum is left to inference.

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