Skip to main content
Glama

Tidy Byte Tools API

Base64 encode or decode

base64
Read-onlyIdempotent

Turn text into Base64, or Base64 back into text. URL-safe and data URIs work too.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "base64"
  }
}

Input Schema

NameRequiredDescriptionDefault
mimeNoThe media type to put in the data URI. Default text/plain;charset=utf-8.
textNoThe text to encode, or the Base64 string to decode.
actionNoWhat to do: "encode", "decode", or "auto" (the default, which guesses from the text).
dataUriNoSet to true to also return a data: URI when encoding. Default false.
urlSafeNoSet to true to use the URL-safe Base64 alphabet when encoding. Default false.

Output Schema

NameRequiredDescriptionDefault
okYes
toolYes
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / action / description
      Added value: +"What to do: \"encode\", \"decode\", or \"auto\" (the default, which guesses from the text)."
    • addedInput schema / properties / dataUri
      Added value: +{
      +  "description": "Set to true to also return a data: URI when encoding. Default false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / mime
      Added value: +{
      +  "description": "The media type to put in the data URI. Default text/plain;charset=utf-8.",
      +  "type": "string"
      +}
    • addedInput schema / properties / text / description
      Added value: +"The text to encode, or the Base64 string to decode."
    • addedInput schema / properties / urlSafe
      Added value: +{
      +  "description": "Set to true to use the URL-safe Base64 alphabet when encoding. Default false.",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety and determinism are covered. The description adds useful capability context (URL-safe alphabet support, data URI output) beyond the annotations. However, it omits the most behaviorally significant detail, that the default action is an auto-detect mode, so a 3 is appropriate.

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?

Two short sentences with zero filler, front-loaded with the core encode/decode capability and followed by the variants. Every clause carries information the agent can use.

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?

With rich annotations, full schema coverage and an output schema, the description need not explain return values or parameter defaults. It covers the core operation and the two optional variants, leaving only the auto-detect default unmentioned, which the schema already supplies.

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 every parameter including the encode/decode/auto action, mime, urlSafe and dataUri is already documented in structured data. The description only gestures at urlSafe and dataUri and adds no syntax or edge-case meaning, which matches the baseline 3 when the schema does the heavy lifting.

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 specific transformation in both directions ("Turn text into Base64, or Base64 back into text") and adds the two notable variants, URL-safe and data URIs. An agent immediately knows the resource and operation. It does not explicitly distinguish itself from adjacent codec siblings such as url_codec or hash, which keeps it below a 5.

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?

There is no when-to-use or when-not guidance, and no routing to alternatives like url_codec for percent-encoding or hash for digests. The sentence "URL-safe and data URIs work too" describes capability rather than selecting conditions, so the agent must infer applicability from the tool name alone.

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.