Skip to main content
Glama
Jambozx

OnlineCyberTools MCP (280+ filterable tools)

math_random_number_generator

Read-only

Generate cryptographically secure random integers, floats, booleans, UUIDs, hex strings, or base64 bytes using CSPRNG with rejection sampling for unbiased results.

Instructions

Generate Cryptographically Secure Random Values. Generates uniform random integers, floats, booleans, UUIDs (v4/v7), hex strings, or base64-encoded bytes using crypto.getRandomValues (CSPRNG), with rejection sampling to eliminate modulo bias. Pick the value family with operation. Use this for one numeric or token-style value family per call; for fake structured records (names, emails, CSV/JSON rows) use data_random_data_generator instead. An optional seed switches to a deterministic xoshiro128** PRNG for reproducible output — never use seeded output for keys, salts, tokens, nonces, or IVs. Read-only, non-destructive, no auth; rate-limited to 60 requests/minute per client. Returns the generated values as an array.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationYesValue family to generate. Determines which other fields are required.
minNoLower bound (required for integer/float; must be strictly less than max). Integers must be whole numbers.
maxNoUpper bound (required for integer/float; must be strictly greater than min).
countNoHow many values to generate (integer/float/boolean/uuid/hex/bytes).
inclusiveNoWhether max is included in the range. Integer default true; float default false. Ignored by other operations.
versionNoUUID layout, used only when operation is uuid. v4 is fully random; v7 is timestamp-ordered (RFC 9562).v4
lengthNoOutput length per value — hex character count, or raw byte count for bytes (base64 is longer). Required for hex/bytes.
seedNoOptional seed string for deterministic xoshiro128** output (reproducible, NOT cryptographically secure). Omit for CSPRNG. Max 1024 characters.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successNoTrue when generation succeeded.
operationNoThe operation that was executed (echoed from the request).
countNoNumber of values returned (length of values).
valuesNoGenerated values: numbers for integer/float, booleans for boolean, or strings for uuid/hex/bytes (base64).
errorNoPresent only on failure (HTTP 400) with the validation message; omitted on success.
Behavior4/5

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

Annotations already indicate readOnlyHint=true and destructiveHint=false. Description adds that it uses crypto.getRandomValues (CSPRNG) with rejection sampling for bias elimination, optional deterministic PRNG with seed, and rate limiting (60 req/min). No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Description is concise (3-4 sentences), front-loaded with main purpose, and every sentence adds value. No redundant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (8 parameters, output schema exists), the description covers purpose, sibling differentiation, behavioral details, parameter relationships, and return format. Output schema exists but description mentions 'returns generated values as an array', which is sufficient.

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 description coverage is 100%, so baseline is 3. Description adds context beyond schema: explains that operation determines which fields are required, and warns that seeded output is not cryptographically secure. Provides meaningful guidance not in schema.

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?

The description clearly states the tool generates cryptographically secure random values and lists specific value families (integers, floats, booleans, UUIDs, hex, bytes). It distinguishes itself from data_random_data_generator for structured records, providing a specific verb and resource.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicitly states when to use (one numeric/token-style family per call) and when not to (use data_random_data_generator for structured data). Also warns against using seeded output for security-sensitive purposes. Provides clear alternative and context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Jambozx/onlinecybertools-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server