Skip to main content
Glama

base64_convert

Read-only

Encode UTF-8 text to Base64 or decode Base64 safely, with standard and URL-safe alphabets.

Input Schema

NameRequiredDescriptionDefault
dataYesText or Base64 data, up to 100 KB.
actionYes
url_safeNoUse the URL-safe alphabet without padding.
l402_proofNoL402 payment proof "<macaroon>:<preimage>". Omit on the first call; an unpaid call returns a 0 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / l402_proof / description
      Previous value: -"L402 payment proof \"<macaroon>:<preimage>\". Omit on the first call; an unpaid call returns a 5 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set."New value: +"L402 payment proof \"<macaroon>:<preimage>\". Omit on the first call; an unpaid call returns a 0 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set."
  2. Changed1 schema field changed
    • addedInput schema / properties / l402_proof
      Added value: +{
      +  "description": "L402 payment proof \"<macaroon>:<preimage>\". Omit on the first call; an unpaid call returns a 5 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set.",
      +  "type": "string"
      +}
  3. Added

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, destructiveHint=false and openWorldHint=true, so safety is partly covered. The description adds meaningful context by fixing the encoding assumption (UTF-8 input) and implying decode validates its input ('safely') rather than silently producing garbage. It omits the L402 paid-call flow entirely, which is the most consequential behavior of this tool, though that is documented in the l402_proof parameter.

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?

A single sentence with no padding; the two operations are front-loaded and the qualifier about alphabets is the only trailing detail. Nothing could be removed without losing information.

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

Completeness3/5

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

For a four-parameter utility with no output schema, the description covers the core operation but says nothing about what encode/decode returns or how decode failures surface, and it is silent on the payment-required flow. The schema fills those gaps, so the definition is workable but not self-sufficient.

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 75%, so the schema carries most of the load, but the description still adds interpretation: 'UTF-8 text' clarifies what the data parameter accepts on encode, and 'standard and URL-safe alphabets' frames the url_safe flag as an alphabet choice rather than a separate mode. It does not restate the 100 KB limit or the padding behavior, which live in the schema.

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 pairs two specific verbs (encode, decode) with the exact resource (UTF-8 text / Base64) and states the alphabet variants, so its function is unmistakable. It does not name or contrast any sibling (e.g. hash_generate, jwt_decode), but the operation is distinct enough that confusion is unlikely.

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 guidance, no prerequisites, and no mention of alternatives or when not to use it. The only hint is the adverb 'safely' for decode, which implies input validation but is not spelled out as a condition for choosing this tool.

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