Skip to main content
Glama

AgentTools Hub

Secure Random Generator

crypto_random_generator

Generate cryptographically secure randomness: passwords with charset rules, hex keys of any byte length, and uniform random integers (rejection sampling, no modulo bias). Never use Math.random for secrets. — x402 price $0.001/call (USDC, eip155:8453).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxYesInt maximum
minYesInt minimum
modeYesMode
upperYesInclude A–Z
digitsYesInclude 0–9
lengthYesLength (password/hex)
symbolsYesInclude symbols

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does add real behavioral detail: 'rejection sampling, no modulo bias' and 'cryptographically secure' disclose the algorithm's guarantees. However, it omits required permissions, error/retry behavior, and the shape of the returned value, which for a 7-required-param tool leaves gaps.

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?

Three dense sentences, purpose front-loaded, with the security warning and pricing tacked on efficiently. The x402 price note is contextual noise for pure capability selection but relevant cost/usage data, so it only mildly dilutes.

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?

For a 7-param tool with no annotations and no output schema, the description covers purpose, modes, and algorithm guarantees well, but it never describes the return payload (e.g. what a generated password or key looks like), which is the main remaining gap.

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%, but the schema descriptions themselves are terse ('Mode', 'Int maximum', 'Length (password/hex)'). The description compensates by mapping parameters to modes and clarifying charset rules ('passwords with charset rules', 'hex keys of any byte length', 'uniform random integers'), adding genuine semantic value.

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 ('Generate') and resource ('cryptographically secure randomness'), then enumerates the three concrete modes (passwords, hex keys, uniform ints) so an agent knows exactly what it produces. Sibling tools are all calculators/converters, so no differentiation is needed.

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?

'Never use Math.random for secrets' gives a clear use context (secret generation) and implicitly excludes the weak-RNG approach, but there is no explicit when-not guidance or named alternatives within the toolset. Usage is implied rather than spelled out.

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