Skip to main content
Glama

x402-random

Random: Cryptographically secure random values in hex, base64 or base64url — for nonces, salts, keys, or any random number you need. 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
lengthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / length / description
      Removed value: -"Length to process"
  2. Changed1 schema field changed
    • addedInput schema / properties / length
      Added value: +{
      +  "description": "Length to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries real weight: it discloses the CSPRNG security property (materially distinguishing it from a naive random), enumerates the three output encodings, and states the pricing/rate-limit context ('5 free trial calls per signed wallet'). It does not say what happens when length is omitted, whether length is bytes or characters, or what the paid cost is after trial calls.

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?

Two front-loaded sentences: capability and output formats first, use cases second, pricing note last. Minimal waste; the emoji and ad-style trial line are slightly promotional but do convey cost-relevant 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?

No output schema and no annotations mean the description must do all the work for a simple one-param generator. It covers security and encoding but leaves the critical unknowns — default length, unit of length, and maximum allowed — unaddressed, which is enough gap to risk a wrong first call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single parameter 'length' is a bare string type with 0% schema description coverage, and the description never mentions it — no default, no units (bytes vs. characters), no valid range, no note that it arrives as a string. The only parameter that governs output is undocumented in both places.

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 resource and output forms: cryptographically secure random values in hex, base64, or base64url, with concrete use cases (nonces, salts, keys). It does not distinguish itself from siblings such as x402-random-range, x402-random-normal, x402-nanoid, or x402-uuid, which all produce randomness, so an agent cannot route confidently on name alone.

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?

Use cases ('nonces, salts, keys, or any random number you need') imply when to reach for it, but there is no explicit when-not guidance and no mention of the sibling random generators. An agent must infer that this is the byte-oriented generator rather than the numeric-range or UUID one.

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