Skip to main content
Glama

base64_encode

Encodes UTF-8 text into a base64 string for safe transmission or storage.

Instructions

Encode a UTF-8 string to base64. [conductor: verified pure command]

Input Schema

NameRequiredDescriptionDefault
textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description must carry the behavioral burden; it adds limited value by saying 'verified pure command', hinting at a deterministic side-effect-free operation. It does not disclose the output alphabet (standard vs URL-safe), whether padding is included, or line-wrapping behavior, which matter for interoperability.

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?

The core sentence is front-loaded and wastes nothing. The trailing '[conductor: verified pure command]' tag is process metadata rather than agent-facing information and slightly dilutes an otherwise clean definition.

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 one-parameter utility with no output schema, the description covers what the tool does and how input is interpreted. The main remaining gap is the output encoding variant, which is a real ambiguity for base64 but modest in scope for this tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% for the single `text` parameter, so the description must compensate; it does by specifying the input is treated as a UTF-8 string, which tells the agent how the argument is interpreted during encoding.

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?

States a specific verb (encode) and resource (UTF-8 string to base64), which is unambiguous and clearly separates it from the sibling base64_decode. An agent can select it without opening the schema.

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 guidance on when to use this versus base64_decode or any other sibling, and no stated prerequisites or exclusions. The direction of operation is inferable from the verb alone, but the description never says it.

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