Skip to main content
Glama

generate_random_numbers

Generate random integers within a specified range, with options for count and uniqueness, for dice rolls, lottery numbers, or randomized sampling.

Instructions

Generate random numbers within a range.

Use this when you need one or more random integers for dice rolls,
lottery numbers, sampling, or any randomized selection.

Parameters:
    min    — Minimum value (inclusive, default: 0).
    max    — Maximum value (inclusive, default: 100).
    count  — How many numbers to generate (default: 1).
    unique — Whether numbers must be unique/no repeats (default: False).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
minNo
maxNo
countNo
uniqueNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries full burden. It explains parameter behavior (inclusive ranges, default values, uniqueness option) but does not disclose return format or performance characteristics. Since randomness is inherently non-destructive, the description adequately covers behavioral traits.

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?

The description is concise and well-structured. The first sentence states the core purpose, followed by usage context. Parameters are listed clearly with defaults, each earning its place. No unnecessary words.

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 simplicity and the presence of an output schema (not shown), the description is complete. It defines all parameters and provides usage context. The sibling tools include many random generators, but the description sufficiently distinguishes this tool.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate. It provides clear, detailed semantics for each parameter: min (inclusive, default 0), max (inclusive, default 100), count (how many, default 1), unique (whether unique, default false). This adds significant value beyond the 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 random numbers within a range and provides concrete examples (dice rolls, lottery, sampling). The verb 'generate' and resource 'random numbers' are specific, distinguishing it from sibling random generators like flip_coin or generate_password.

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

Usage Guidelines4/5

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

The description explicitly states when to use the tool ('when you need one or more random integers for dice rolls, lottery numbers, sampling, or any randomized selection'). It does not specify when not to use it or mention alternatives, but for a simple tool, this is sufficient guidance.

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/scotia1973-bot/api-hub'

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