Skip to main content
Glama

text_base64

Encode bounded caller-supplied UTF-8 text as standard or URL-safe Base64, or decode canonical Base64 back to valid UTF-8 text. Forest performs the transform locally with no network request and rejects invalid encodings, non-UTF-8 decoded bytes, and outputs beyond the 100 KiB byte bound. Price: $0.001 USDC per successful call.

Input Schema

NameRequiredDescriptionDefault
modeNoPublic mode value used to scope this lookup.
valueYesPublic value value used to scope this lookup.
variantNoPublic product options used to select an offer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

It adds substantial context beyond the annotations: local-only execution with no network request, rejection of invalid encodings and non-UTF-8 decoded bytes, the 100 KiB output bound, and a per-successful-call price. One caveat: a purely local, deterministic transform sits awkwardly against openWorldHint=true and idempotentHint=false, though this is a mild tension rather than a direct contradiction.

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 dense sentences that are well front-loaded: the transform first, then behavior and limits, then price. Every clause carries information, though the second sentence is packed tightly enough to border on overload.

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 no output schema, the description carries the return burden, and it only implies the response (encoded or decoded text) without stating the shape. For a simple two-mode transform with rich validation detail, this is a minor gap rather than a blocking one.

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 nominally 100%, but the schema descriptions are boilerplate ('Public value value used to scope this lookup'), so they convey no real meaning. The description compensates by explaining the mode values (encode/decode), the variant values (standard vs URL-safe), and that the input is bounded UTF-8 text.

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 names both specific verbs (encode/decode), the exact resource (Base64 / UTF-8 text), and the scope constraint (bounded, caller-supplied UTF-8). An agent can distinguish this from the sibling text_hash without opening either schema.

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?

It implicitly routes the caller between the two modes ('encode ... or decode canonical Base64 back'), but gives no explicit when-to-use/when-not guidance and never names the adjacent text_hash alternative. Usage is inferable rather than stated.

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