Skip to main content
Glama

Base64 encode / decode

base64
Read-onlyIdempotent

Encode text to Base64 or decode Base64 back to text (UTF-8 safe). Supports URL-safe alphabet. Use whenever you need to encode/decode data URIs, tokens, or config values instead of guessing the bytes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoDirection.encode
inputYesText to encode, or Base64 to decode.
url_safeNoUse URL-safe alphabet (-_ instead of +/, no padding).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYesencode or decode.
resultYesThe encoded or decoded text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "mode": {
      +      "description": "encode or decode.",
      +      "type": "string"
      +    },
      +    "result": {
      +      "description": "The encoded or decoded text.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "mode",
      +    "result"
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, lowering the bar. The description adds valuable context beyond annotations: 'UTF-8 safe' and 'Supports URL-safe alphabet' disclose encoding behavior that is not present in the annotations or schema. No contradiction exists.

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 concise sentences: the first states purpose and key features, the second gives usage guidance. Every word earns its place, with no fluff or repetition of schema fields.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple encode/decode tool with a complete output schema and strong annotations, the description is fully adequate. It covers purpose, usage context, and key behaviors without needing to explain return values or edge cases.

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%, so the schema fully documents each parameter (mode, input, url_safe). The description does not add further parameter-level details beyond the schema, meeting the baseline of 3.

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?

The description immediately states the core function ('Encode text to Base64 or decode Base64 back to text') with specific details like UTF-8 safety and URL-safe alphabet support. It clearly differentiates from sibling tools by naming the encode/decode operation, making the purpose unmistakable.

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?

It provides explicit use cases: 'Use whenever you need to encode/decode data URIs, tokens, or config values instead of guessing the bytes.' This gives clear context for when to apply the tool, though it does not exclude alternatives by name, which would warrant a 5.

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.