Skip to main content
Glama

Util base64

util_base64
Read-onlyIdempotent

Use when you need base64 in or out: encode UTF-8 text to base64 (standard or url_safe) or decode base64 back to text (hex when the bytes are not UTF-8), up to 64 KB, no external call. Returns the paid x402 request for your input (GET /util/base64, $0.001 per call; schema linked). Call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge. First call each day returns the data itself, free; later calls return the paid request.

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

Input Schema

NameRequiredDescriptionDefault
inputYesText to encode, or base64 to decode
actionNoencode or decodeencode
url_safeNoUse the url-safe alphabet without padding

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, the description discloses several non-obvious traits: a 64 KB cap, no external call, a $0.001 price, bad input refused before any charge, and the fact that paid calls return an x402 payment request rather than the data. The first-call-per-day-free behavior is exactly the kind of operational quirk an agent would otherwise stumble on.

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?

The purpose is front-loaded and nearly every clause carries information, but the text is one dense run-on with semicolons, and the single most consequential fact — paid calls return a payment request instead of data — is buried mid-paragraph. Splitting the payment mechanics into their own sentence or two would make the call pattern far easier to parse.

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 carries the return-value burden and does explain the x402 request shape and the free-first-call exception. The vague "schema linked" phrase and the absence of detail on what the free-call data looks like are the only loose ends for a tool of this complexity.

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

Parameters4/5

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

Schema coverage is 100%, so all three parameters are already documented; the baseline would be 3. The description adds real meaning on top: the url_safe variant implies the unpadded url-safe alphabet, and the hex-on-non-UTF-8 decode behavior clarifies an output consequence of the input format that the schema does not state.

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 the specific verbs and resource up front: encode UTF-8 text to base64 (standard or url_safe) or decode base64 back to text, with hex output when bytes are not UTF-8. An agent can immediately tell this apart from util_hash, util_jwt_decode, or util_json_validate by the resource named.

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?

"Use when you need base64 in or out" gives a clear triggering condition, and the encode/decode branches with their variants (standard vs url_safe, hex fallback) tell the agent which mode to pick. There is no explicit statement of when NOT to use it or a named alternative, which keeps it below a 5.

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