Skip to main content
Glama

util_base64

Read-only

Base64 encode and decode — Encode text to Base64 (standard or URL-safe) or decode Base64 back to text, with byte counts and a hex preview for binary data. 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>",
      "decode": "<decode>"
    },
    "name": "util_base64"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYestext to encode (or use decode)
decodeYesBase64 string to decode
urlsafeNooptional true for URL-safe alphabet

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so safety is covered. The description adds genuinely new behavioral facts beyond those: the response includes byte counts and a hex preview for binary payloads, and each call costs $0.001 USDC on Base via x402 — the paid-per-call detail is exactly what an agent needs before invoking.

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?

One front-loaded sentence that states the action first, then the output shape, then the price. No filler, though the em-dash chain makes it slightly dense.

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?

For a small stateless utility with a fully documented 3-param schema and no output schema, the description covers action, options, output characteristics and cost. Only the encode-vs-decode mode selection ambiguity is left unaddressed.

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 100%, so all three parameters are already documented, and the description largely restates them (standard vs URL-safe alphabet). It does not resolve the notable schema oddity that both 'text' and 'decode' are required despite being mutually exclusive modes, nor that 'urlsafe' is typed as a string.

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?

Names a specific verb pair (encode/decode) and resource (Base64), plus the alphabets supported and the shape of the output (byte counts, hex preview for binary). It is clear on its own, but never distinguishes itself from the generic util_convert sibling that could plausibly be reached for the same task.

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?

The sentence makes the two modes obvious (encode text, or decode a Base64 string, optionally URL-safe), so usage is inferable from the params. There is no explicit when-to-use/when-not guidance or routing to an alternative.

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