Skip to main content
Glama

x402 Toolbox

Cryptographically secure random bytes, tokens and passwords

random
Read-only

Cryptographically secure random bytes, tokens and passwords. Generates random bytes (hex/base64/base64url/base58), passwords with chosen character classes, or numeric PINs, from a CSPRNG. Reports the entropy in bits. Nothing is stored. Price: $0.003 USDC per call via x402 (eip155:8453).

Input Schema

NameRequiredDescriptionDefault
kindNobytes
countNo
lengthNobytes for kind=bytes, characters otherwise
symbolsNo
encodingNohex

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the read-only/non-destructive profile, and the description adds meaningful context beyond them: CSPRNG source, entropy reported in the result, no persistence, and the x402 payment price. It leaves output shape and count behavior unspecified, keeping it short of a 5.

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?

Four compact sentences, front-loaded with the core capability, then a mechanism note, a storage note, and pricing. Each sentence carries information; only the trailing price line is arguably tangential to calling the tool.

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 read-only generator with no output schema, the description supplies the important missing pieces: entropy reporting, non-persistence, and payment. It could say more about how 'count' batches results and what the response fields look like, but overall an agent has enough to call it correctly.

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 only 20% (only 'length' is documented), so the description must compensate. It does explain the encoding options and the password character-class mode, but 'count', the interaction between length and kind, and the default values are not addressed, and the encodings merely restate an existing enum.

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?

States a specific verb and resource ('generates random bytes, passwords, numeric PINs') plus the mechanism (CSPRNG), which clearly separates it from siblings like uuid or hash. An agent can tell what this tool produces 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 Guidelines3/5

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

The enumerated modes (bytes, password, PIN) imply usage, and 'Nothing is stored' hints at the ephemeral-secret use case, but there is no explicit when-to-use guidance or routing to alternatives such as uuid for identifiers. 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.