Skip to main content
Glama

base64_decode

Decode standard or URL-safe base64 to UTF-8 text. Missing padding is tolerated. Use to read encoded headers, tokens and data URLs. Side effects: none on any outside system (it only reads or computes), but each successful call costs $0.001 in USDC on Base or another supported network, paid with x402, or the same amount in prepaid card credits when the request carries an API key from /credits. That payment is why the tool is not marked read-only or idempotent: repeating a call charges again. Failed calls are never charged. Each caller gets 25 free successful calls first (over MCP they are used automatically).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe base64 text

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Extraordinarily candid: it explains the side-effect profile (no outside-system effects), the per-call USDC/x402 payment, prepaid-credit alternative via API key, the 25 free calls, that failed calls are never charged, and crucially why readOnlyHint=false and idempotentHint=false despite being a pure computation. This reconciles the annotation profile rather than contradicting it.

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?

Front-loads the core behavior and input tolerance before the pricing details. The billing sentences are long but each carries distinct information (method, cost, free tier, failure policy) that the agent needs; nothing is pure filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter pure function with no output schema, the description covers input variants, error tolerance, side effects, and the full payment/auth model. There is no gap an agent would need to fill before calling it.

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% with a single parameter, so baseline is 3, but the description adds real meaning: it tolerates missing padding and accepts both standard and URL-safe alphabets, which the bare schema ('The base64 text') does not convey.

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 a specific verb (decode) and resource (base64 to UTF-8), and the sibling base64_encode is trivially distinguishable by the verb. Also names supported variants (standard or URL-safe), so an agent knows exactly what transformation this performs.

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?

Gives concrete usage context ('Use to read encoded headers, tokens and data URLs'), which orients the agent toward the right situations. It stops short of explicit when-not conditions or naming base64_encode as the inverse alternative, but the verb makes the routing obvious.

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