Skip to main content
Glama

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

devutils_gen_token

Random hex token (1-256 bytes). $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: GET https://exchangerebel.com/toll/devutils/gen/token.

Input Schema

NameRequiredDescriptionDefault
bytesNoDefault 32

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only cover read-only/destructive/idempotency flags; the description adds material context they cannot: the $0.005 price, the USDC-on-Solana/x402 payment rail, the two-phase challenge-and-retry handshake, the exact _meta key, and an HTTP fallback URL. That is substantial disclosure beyond structured fields, though it omits whether the randomness is cryptographically secure and whether retries are billed twice.

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?

Single tight block: purpose and output shape first, then pricing, then the payment procedure, then the HTTP equivalent. The parenthetical payment explanation is dense but every clause is load-bearing; nothing is repeated from the schema.

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 generator with no output schema, the definition covers what is produced, its size range, its cost, and the unusual payment handshake an agent must perform. Only the error/edge behavior (invalid byte count, double-charging on retry) is left unstated.

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 100%, so baseline is 3, but the description earns an extra point by adding the 1-256 range constraint and units that the schema only hints at ('Default 32' for a string-typed parameter). It still doesn't state what happens on out-of-range input or whether the boundary is inclusive.

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+resource with a concrete output shape: 'Random hex token (1-256 bytes)'. It is clearly distinct from devutils_gen_password and devutils_gen_uuid in output format, but it never names those siblings to make the distinction explicit.

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?

The description gives a concrete operational procedure for payment ('call without payment to get the PaymentRequired challenge, then retry with the payment at _meta["x402/payment"]'), which is genuine when/how guidance. However, it never says when to pick this over the sibling generators (gen_password, gen_uuid) or what the token is suitable for, leaving selection to inference.

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