Skip to main content
Glama

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

devutils_encode_base64

Encode a UTF-8 string as Base64 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/encode/base64.

Input Schema

NameRequiredDescriptionDefault
textNostring

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false, idempotentHint=false, destructiveHint=false, openWorldHint=false, so the description usefully adds the real behavioral facts an agent needs: a fixed $0.005 USDC-on-Solana cost and the two-step x402 payment handshake. It omits rate limits, error/cancellation behavior, and doesn't reconcile the surprising non-idempotent annotation for what is a pure transformation.

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 clause, followed by the pricing and transport details. Three sentences with little waste, though the payment-parenthetical is dense enough that a reader must parse nested syntax to act on it.

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, no-output-schema utility, the description covers what the tool does, what it costs, and how to pay via both MCP and HTTP. Remaining gaps — output shape confirmation, input size limits, failure modes — are minor but non-zero.

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?

With one parameter and 100% schema description coverage, the schema is nominally complete, so baseline 3 applies. The description adds one genuinely useful semantic detail — the input is interpreted as UTF-8 — but says nothing about size limits or what happens with invalid input.

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 first sentence names a specific verb (encode) and resource (UTF-8 string as Base64 text), which cleanly separates it from its sibling devutils_decode_base64. An agent can identify the operation 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives actionable invocation context for the unusual case: call without payment to receive the PaymentRequired challenge, then retry with payment at _meta["x402/payment"], plus the HTTP equivalent. That is clear procedural context, but it never states when to prefer this tool over a free alternative or what to do on payment failure, and no exclusions are given.

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