Skip to main content
Glama

Agent Data Hub

Encode / decode: base64, base64url, hex, URL, HTML

util_encode
Read-onlyIdempotent

Encode or decode text: base64, base64url, hex, URL percent-encoding, HTML entities. Decoding binary data returns is_utf8=false plus the hex bytes instead of broken text. Invalid input returns a 400 error (not charged). Up to 100,000 characters. Price: $0.001 per call (USDC on Base via x402); the first 10 calls per day are free.

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

Input Schema

NameRequiredDescriptionDefault
opYesOperation
textYesInput text

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare the safe, read-only, idempotent profile; the description goes well beyond that with the is_utf8=false plus hex-bytes fallback for binary decode, 400 on invalid input with no charge, the 100,000 character cap, and x402 pricing with 10 free calls per day. These are exactly the operational facts an agent needs before calling a metered endpoint.

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?

Four short sentences, front-loaded with capability, then the binary-decode edge case, then error/limit, then price. Nothing repeats the title or the enum, and every clause carries a distinct fact.

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 output schema, the description covers the tricky return path (hex bytes when not UTF-8) but never states the shape of a normal successful result, such as the field holding the encoded string. Combined with the stated limits, error behavior, and pricing, it is nearly complete for a two-parameter utility, missing only the standard return contract.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the op enum already enumerates all ten operations, so the schema does the heavy lifting. The description still adds meaning the schema lacks by bounding text to 100,000 characters, which tells the agent when its payload must be chunked or rejected before the call.

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 opens with a specific verb pair (encode/decode) and resource (text), then enumerates the exact codecs covered: base64, base64url, hex, URL percent-encoding, HTML entities. That enumeration implicitly separates it from siblings like util_hash (digest) and util_url_parse (parsing), though it never names an alternative explicitly, keeping it just short of a 5.

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?

Usage is only implied: the reader infers you pick a codec and pass text, and that a decode of binary yields hex bytes. There is no explicit when-to-use, when-not-to-use, or routing advice (e.g. 'for hashing use util_hash', 'to parse a URL's components use util_url_parse'), so an agent facing an overlapping sibling must reason it out alone.

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