Skip to main content
Glama

Base64 encode and decode

util_base64

Base64 in both directions, including the URL-safe alphabet, with UTF-8 handled properly. Encoding is what carries payloads through headers and JSON, and x402 itself rides on it. $0.005 per call, paid over x402 (USDC).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoencode | decode. Defaults to encode.
inputYesThe text or base64 to convert.
urlSafeNoUse the URL-safe alphabet (-_ instead of +/).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/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. It usefully discloses the pricing model ($0.005 per call, paid over x402/USDC) and UTF-8 handling, which are traits an agent cannot get from the schema. However, it says nothing about error behavior for invalid base64, output format, or limits.

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 the pricing sentence earns its place as actionable context. The middle sentence ('Encoding is what carries payloads through headers and JSON, and x402 itself rides on it') is largely justification/marketing that adds little invocation value, so the response is slightly padded.

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 simple three-parameter utility with no output schema and no annotations, the description covers both directions, the URL-safe variant, UTF-8 handling, and cost. Gaps remain around error/return behavior, but nothing critical to correct invocation is missing.

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 the schema already documents mode, input, and urlSafe completely. The description's mention of 'both directions' and 'URL-safe alphabet' loosely maps to mode and urlSafe but adds no syntax or default detail beyond the schema, warranting the baseline 3.

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 states a specific verb+resource: base64 encode and decode, naming both directions and the URL-safe alphabet plus UTF-8 handling. The purpose is unambiguous and matches the title. It does not explicitly differentiate from sibling utilities like util_hex or util_uuid, so it stops 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?

The description gives general context for why base64 matters ('carries payloads through headers and JSON') but provides no explicit when-to-use or when-not-to-use guidance, and does not name an alternative such as util_hex for hex conversions. Usage is only implied from domain context.

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