Skip to main content
Glama

base64

Encodes UTF-8 text to base64 (or base64url) or decodes base64 back to text. 0.001 USDC per call via x402.

Input Schema

NameRequiredDescriptionDefault
urlNoUse base64url alphabet
modeNoencode or decodeencode
textYesInput text (max 20,000 characters)
paymentProofNoPayment proof: USDC tx hash on Polygon or Base (0x...) or Solana tx signature. Omit on the first call to receive the 402 payment instructions, pay, then call again with the proof.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Since no annotations are provided, the description must carry the burden of behavioral disclosure. It successfully informs the user of the high operational cost (0.001 USDC) and the complex payment procedure required for the `paymentProof` parameter.

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 description is highly concise, but it mixes the functional description of the utility with the complex operational cost and payment procedure in a single, slightly dense sentence, impacting optimal structure.

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?

For a utility wrapper, it provides adequate operational context, especially regarding the financial and payment requirements. However, it lacks detail on error responses or expected output formats upon successful decoding.

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?

The description provides critical semantic and procedural context far beyond the schema. Specifically, it mandates the payment workflow (omit on first call, pay, then call again) and specifies the maximum character limit for the `text` input.

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 clearly states the core function: encoding or decoding UTF-8 text using base64 or base64url. Since no other encoding/decoding tools are listed, the distinction is implicitly clear.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description provides zero guidance on when to use this tool versus other similar utilities (e.g., the sibling tool `hash` or `json_format`). It only describes what it *does*.

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.