Skip to main content
Glama

ExchangeRebel — pay-per-call APIs for AI agents (x402 on Solana)

devutils_decode_base64

Decode a Base64 string to UTF-8 text. $0.005 per call — USDC on Solana via x402 (over MCP: call without payment to get the PaymentRequired challenge, then retry with the payment at _meta["x402/payment"]). HTTP equivalent: POST https://exchangerebel.com/toll/devutils/decode/base64.

Input Schema

NameRequiredDescriptionDefault
textNostring

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=false, so the safety profile is partly covered. The description adds genuinely non-obvious behavior: a per-call price, the x402 payment handshake, the exact _meta key for the payment payload, and an HTTP equivalent endpoint. It does not contradict the annotations, though readOnlyHint=false on a pure decode is left unexplained.

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?

Purpose is front-loaded in the first sentence, followed by pricing and payment mechanics, then the HTTP equivalent. Every sentence carries information, though the pricing and endpoint detail is dense and slightly crowds out anything about the response.

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?

With no output schema, the description must convey return shape, and it only implies a UTF-8 string without saying whether the result is raw text or wrapped in a JSON envelope. It also omits error behavior for invalid Base64 input. The payment and transport story, by contrast, is complete.

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%, but the single parameter is documented only as "string" under the name "text", which is nearly meaningless. The description compensates by establishing that the input is a Base64 string to be decoded, but adds nothing about encoding variants, padding, whitespace, or size limits. Baseline 3 fits given the schema carries the structural load.

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?

States a specific verb and resource ("Decode a Base64 string to UTF-8 text"), which unambiguously separates it from the inverse sibling devutils_encode_base64. It does not explicitly name that sibling or any other alternative, so it falls short of the top mark.

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?

There is no explicit statement of when to reach for this versus devutils_encode_base64 or other devutils helpers; usage is implied purely by the verb. The description does supply procedural guidance for the payment flow (call without payment to get the challenge, then retry), which is real usage direction but not tool-selection guidance.

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