Skip to main content
Glama

Base64 Encode / Decode API - text or files

base64_encode_decode
Read-onlyIdempotent

Encode text or a file to Base64 or decode Base64 back, with URL-safe variant. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/base64-encode-decode.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "mode": "encode",
      "text": "hello"
    },
    "name": "base64_encode_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoencode or decodeencode
textNoThe text
filesNoOr several files: [{fileName, fileContent (base64)}] (up to 60 files, 20 MB total)
urlSafeNoURL-safe alphabet (- and _)
fileNameNoFile name with extension, e.g. report.pdf
fileContentNoOr send a file as base64 (a data: URI is fine) instead of text

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / files / description
      Previous value: -"Or several files: [{fileName, fileContent (base64)}]"New value: +"Or several files: [{fileName, fileContent (base64)}] (up to 60 files, 20 MB total)"
    • addedInput schema / properties / files / maxItems
      Added value: +60
  2. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the readOnlyHint/idempotentHint/openWorldHint annotations, the description discloses that processing happens remotely, that uploaded files are deleted immediately and nothing is stored, and it gives concrete rate limits (5 calls/day per IP) plus two paid paths with header and endpoint details. That is exactly the operational context annotations cannot convey.

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?

Two sentences, front-loaded with the action and scope, then the operational constraints. The pricing/URL tail is dense but each clause carries information an agent or caller needs; nothing is 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 6-parameter utility with full schema coverage and annotations, the description supplies the missing behavioral layer: privacy of uploaded files, rate limits, and authentication paths. The remaining gap is return-shape information (no output schema exists, and the description never says what a decode response contains), but the tool is otherwise callable as described.

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 mode, text, files, urlSafe, fileName, and fileContent are already documented in the schema. The description only restates the text-or-file choice and the URL-safe variant without clarifying how fileName/fileContent relate to the files array or how inputs are prioritized, so it adds little beyond the schema baseline.

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 names a concrete verb pair and resource: encode text or a file to Base64, decode Base64 back, plus a URL-safe variant. It is clearly distinguishable from sibling converters like base64_to_pdf or image_to_base64 because it states both directions and the text/file inputs. It does not explicitly contrast with url_encode_decode, which keeps it at 4 rather than 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?

Usage is implied by the encode/decode modes and the note that files are accepted, but there is no explicit guidance on when to pick this over url_encode_decode, base64_to_pdf, or image_to_base64. The access/pricing sentence tells an agent how to get through the gate, not which tool to choose, so context is present without alternative routing.

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