Skip to main content
Glama

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. Use this when an agent needs to cSPRNG passwords, hex keys and uniform integers. x402 price $0.01/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 behavior: rejection sampling with no modulo bias, plus an operational cost disclosure ($0.01/call, USDC on eip155:8453). However it says nothing about the shape of the returned value per mode, error behavior, or how the seven required parameters interact across modes. Adequate but incomplete for a no-annotation tool.

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?

Front-loaded with the capability and three modes in one dense sentence, then the anti-Math.random warning. The third sentence largely restates the first ('Use this when an agent needs to cSPRNG passwords, hex keys and uniform integers'), which is mild redundancy, and the price tag feels appended rather than integrated.

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?

There is no output schema and no annotations, so the description is the only place an agent can learn what comes back, and it never describes the return value. It also does not explain that all seven parameters are required regardless of mode (e.g. min/max must presumably still be passed in password mode), which is the main practical trap for a caller.

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 the baseline is 3, but the description genuinely adds meaning: 'charset rules' glosses the upper/digits/symbols flags, 'hex keys of any byte length' clarifies that length means bytes in hex mode, and the rejection-sampling note characterizes how min/max are honored for int mode. That is a useful lift over the terse schema strings.

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') and then enumerates the three output families (passwords, hex keys, uniform integers). An agent can distinguish this from siblings like security_password_strength (which measures an existing password) or dev_uuid 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?

'Use this when an agent needs to cSPRNG passwords, hex keys and uniform integers' is an implied-usage restatement of the purpose sentence rather than routing guidance. There is no when-not clause and no named alternative (e.g. security_password_strength for judging a password the agent already has), so the agent must infer boundaries itself.

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