Skip to main content
Glama

Agent Data Tools: Utilities

Base64 decode

base64_decode
Read-only

Decode standard or URL-safe base64 to UTF-8 text. Missing padding is tolerated. Use to read encoded headers, tokens and data URLs. Example: text=aGVsbG8gd29ybGQ=. Price $0.003/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe base64 text

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint, idempotentHint and openWorldHint, so the safety profile is covered. The description adds real non-schema context: per-call pricing, 25 free calls, failed calls free, and that repeated calls are charged (consistent with idempotentHint=false).

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 example before the pricing/policy tail. The billing sentences are somewhat dense, but each conveys operationally relevant facts, so little is wasted.

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 correctly states the return type (UTF-8 text). For a one-parameter, fully-documented pure-compute tool it covers input variants, example, and cost model; only the failure mode (invalid base64) is left unstated.

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 description coverage is 100% with a single 'text' parameter, so the baseline is 3. The description exceeds that by supplying a concrete worked example (text=aGVsbG8gd29ybGQ=) and clarifying accepted encodings/padding behavior for the input.

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) plus the resource and the two accepted input flavors (standard or URL-safe base64) and the output type (UTF-8 text). This distinguishes it cleanly from the sibling base64_encode and from unrelated decode tools like url_decode.

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 when-to-use contexts ('read encoded headers, tokens and data URLs') and a tolerance note ('Missing padding is tolerated'). It does not name base64_encode as the inverse alternative, but the direction is unambiguous from the verb.

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.