Skip to main content
Glama

Base64 Encode / Decode

base64
Read-only

Encode UTF-8 text to Base64, or decode Base64 back to text. Supports the standard and URL-safe alphabets.

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

Input Schema

NameRequiredDescriptionDefault
modeYesWhether to encode text into Base64 or decode Base64 into text.
textYesText to encode, or Base64 to decode.
urlSafeNoUse the URL-safe alphabet (-/_ instead of +//, no padding).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds only the supported-alphabet note, omitting what happens on malformed Base64 input during decode. That is acceptable given the annotation coverage but not rich.

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 front-loaded sentences with no filler, leading with the primary capability before the alphabet caveat. It is maybe slightly over-minimal for a codec, but nothing 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?

For a simple two-mode read-only transform with full schema descriptions and clear annotations, the definition is nearly self-sufficient. The only real gap is decode failure behavior, which matters but is minor.

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 coverage is 100%, with all three parameters documented including the mode enum and urlSafe default. The description adds no syntax or formatting detail beyond what the schema already states, so the baseline of 3 applies.

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: encode UTF-8 text to Base64 or decode it back, plus the alphabet variants supported. The operation is inherently distinct from siblings like url_encode or jwt_decode, though the description never explicitly contrasts itself with them.

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 only implied by the encode/decode framing; there is no explicit statement of when to pick this over url_encode or hash_text. An agent can infer the context, but the description does not spell out conditions or exclusions.

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