Skip to main content
Glama

Base64 encode / decode

base64
Read-onlyIdempotent

Encode plain text into standard or URL-safe Base64, or decode encoded strings back to readable text.

Instructions

Encode text to Base64 or decode Base64 to text. Supports the URL-safe alphabet. (Same as IT-Tools /base64-string-converter.)

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": {
      "action": "<action>",
      "text": "<text>"
    },
    "name": "base64"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
actionYes
urlSafeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint=false, and idempotentHint, so safety behavior is covered. The description adds a useful behavioral detail—support for the URL-safe alphabet—beyond the annotations. However, it does not disclose error behavior for invalid Base64 input or what the output looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two short sentences, front-loaded with the core operation, followed by the URL-safe detail and a recognizable alias. Every sentence adds value and there is no unnecessary wording.

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 three-parameter converter with annotations covering safety and no output schema, the description is largely complete. It covers purpose and URL-safe support, though it could mention the return type or invalid-input behavior to be fully self-contained.

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 0%, so the description must carry parameter meaning. It implies the 'text' and 'action' semantics through the encode/decode wording and mentions URL-safe support, which maps to the 'urlSafe' boolean. It does not explicitly explain defaults, required values, or parameter names, leaving some ambiguity.

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 states a specific verb and resource: 'Encode text to Base64 or decode Base64 to text.' It is immediately clear what the tool does. It does not explicitly differentiate itself from sibling tools like url_encode or hash_text, which keeps it from a 5 under the rubric.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no explicit when-to-use or when-not-to-use guidance, and it does not name alternatives. The purpose implies usage, but there is no context about choosing this tool over other encoding or conversion siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.