Skip to main content
Glama

random_number

One or more random whole numbers in a range (inclusive), optionally all different, from a cryptographic random source. Use for draws, sampling and games. Costs $0.001 in USDC on Base per successful call, paid with x402.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxNoHighest value (default 100)
minNoLowest value (default 1)
countNoHow many (1-1000, default 1)
uniqueNotrue for no repeats

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations supply the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true, idempotentHint=false), so the description clears the lower bar. It adds genuinely useful context beyond them: the cryptographic randomness quality, inclusive range semantics, and a concrete per-call cost of $0.001 USDC on Base via x402, which explains why readOnlyHint is false for a compute-only operation.

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?

Three tight sentences: purpose first, then usage, then cost. Every sentence earns its place and nothing is padded or repeated.

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?

With no output schema, the description still conveys what comes back (one or more whole numbers) and discloses the payment model. It stops short of failure behavior or the unique/count interaction, but for a simple 4-parameter generator with full annotation and schema coverage this is close to sufficient.

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 description coverage is 100%, so the schema already documents min, max, count and unique, putting the baseline at 3. The description adds only the range inclusivity and the "all different" restatement of unique, which largely duplicates the schema's "true for no repeats"; it does not address edge cases such as unique=true with count exceeding the range size.

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?

The description states a specific verb and resource: generating one or more random whole numbers within an inclusive range, drawn from a cryptographic source. It implies a distinction from list-based siblings like random_pick or random_shuffle by scoping to a numeric range, but never names or contrasts those siblings explicitly.

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 for draws, sampling and games" gives implied usage context, which is more than nothing. However, it offers no when-not conditions and no routing guidance among the many random_* and game-related siblings (random_pick, random_shuffle, random_teams, dice, magic-8-ball).

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