Skip to main content
Glama

Fair Random

Random integers

random_integer
Read-only

Integers from min to max inclusive, 1 to 1000 of them, with or without repeats. The range may hold at most 2^32 values.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxYes
minYes
seedNoOptional. 64 hex characters. Give the seed of an earlier answer to get the same result again (that is how a draw is checked). Leave it out for a fresh draw.
countNo
uniqueNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is covered; the description adds the hard range ceiling of 2^32 values and the inclusive bound semantics, which are not derivable from the schema. It still omits what happens on impossible requests (e.g. unique=true with a count exceeding the range size).

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?

Two tight sentences with zero filler and the interval definition front-loaded. The phrasing '1 to 1000 of them' is slightly compressed at the cost of a little readability, but nothing is wasted.

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 5-parameter tool with no output schema, the description should say what comes back (a single integer vs an array when count > 1) and how errors are surfaced when unique cannot be satisfied. Annotations cover safety, but the return shape remains unstated, leaving a real 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?

With only 20% schema description coverage, the description carries most of the load: it explains min/max as an inclusive interval, count as 1-1000 items, and unique as 'with or without repeats' — covering four of five parameters. The seed parameter's 64-hex replay semantics are left to the schema, which does document them well.

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 names the concrete resource (integers drawn from a min/max interval) plus its scope controls (count 1-1000, repeats optional), which is clearly distinct from siblings like pick_from_list or shuffle_list that operate on supplied collections. It never explicitly contrasts itself with those siblings, so it stops short of a 5.

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

Usage Guidelines2/5

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

There is no statement of when to choose random_integer over roll_dice, pick_from_list, or shuffle_list, and no prerequisites or exclusions. Only an incidental hint about replaying a draw via the seed, which is really a parameter behavior rather than usage guidance.

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