Skip to main content
Glama

Agent Data Tools: Utilities

Base64 decode: decode base64 or URL-safe base64 back to text

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.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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>"
    },
    "name": "base64_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe base64 text

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and destructiveHint=false, so 'Reads or computes only and changes nothing' is largely redundant. It does add real value with 'Missing padding is tolerated' and the per-call pricing model including free failures, though the mention of 'tokens' slightly overlaps with the dedicated jwt_decode sibling. Overall it's useful but partly repeats the annotations.

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?

The core purpose, tolerance behavior and usage contexts are front-loaded, and the example is compact. The pricing sentence is long and somewhat over-detailed for a tool definition, but it is relevant to the caller's decision to invoke.

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 one-parameter, no-output-schema tool, the description covers purpose, tolerance behavior, use cases and cost, which is nearly everything an agent needs. It could mention what happens on invalid input, but nothing critical 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?

With a single parameter and 100% schema description coverage, the schema already carries the parameter meaning, so the baseline is 3. The inline example (text=aGVsbG8gd29ybGQ=) adds a small amount of format illustration but no additional semantics.

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?

States a specific verb and resource ('Decode standard or URL-safe base64 to UTF-8 text'), which clearly distinguishes it from base64_encode. It does not explicitly distinguish it from jwt_decode or url_decode, both of which serve adjacent decoding use cases, so sibling differentiation is only partial.

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?

'Use to read encoded headers, tokens and data URLs' gives concrete usage contexts. However, there are no exclusions or routing rules — 'tokens' overlaps with jwt_decode and nothing tells the agent when to prefer that 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