Skip to main content
Glama

Random number

random_number

Uniform random integers in any range you give, with or without repeats. Rejection sampling, so the ends of the range are not slightly less likely - which is what happens with modulo. $0.005 per call, paid over x402 (USDC).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxNoHighest value, inclusive. Defaults to 100.
minNoLowest value, inclusive. Defaults to 1.
countNoHow many to draw, 1-100. Defaults to 1.
uniqueNoNo repeats. Needs a range at least as wide as count.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does add real behavioral value: it discloses the sampling algorithm (rejection sampling → uniform ends, unlike modulo) and, importantly, a pricing/access trait ($0.005 per call paid over x402 USDC). It stops short of error or edge-case behavior, but the cost and uniformity disclosures are exactly the kind of non-structured context annotations would otherwise provide.

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?

Three tight sentences, front-loaded with what the tool produces, then the uniformity guarantee and cost. Nothing is filler; the algorithm note is arguably more detail than needed but is not wasteful.

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?

For a simple scalar-generator with 100% schema coverage and no output schema, the definition covers purpose, uniformity behavior, and cost. Return values are self-evident (numbers), so the only missing element is routing guidance against the sibling random tools.

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% with four well-annotated optional params (min/max/count/unique defaults and constraints all documented in the schema). The description adds no parameter syntax or format beyond that, so the baseline 3 applies.

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?

States a specific verb+resource: 'Uniform random integers in any range you give, with or without repeats.' An agent can tell this generates arbitrary-range integers (unlike random_dice/random_coinflip, which are fixed domains), but the description never names those siblings, so the differentiation is left to inference.

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?

The phrase 'in any range you give, with or without repeats' implies the use case (arbitrary-range integers, optionally unique draws), but there is no explicit when-to-use guidance, no exclusion of the random_dice/random_pick/random_coinflip siblings, and no mention of when to prefer the unique flag.

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