Skip to main content
Glama

UK Data for Agents

generate_random_number

Read-onlyIdempotent

Generates a cryptographically secure random integer within a specified range (inclusive). Uses a secure random source. (cost: 1 credit)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_random_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNointeger, required, maximum value (inclusive), no unit, no default
minNointeger, required, minimum value (inclusive), no unit, no default

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?

Beyond the annotations it adds genuinely useful behavior: the source is cryptographically secure, bounds are inclusive, and each call costs 1 credit. Minor tension with idempotentHint=true (a random value differs per call), but the annotation most plausibly concerns absence of side effects rather than a hard contradiction. 'Uses a secure random source' partly restates 'cryptographically secure'.

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 short sentences with the core guarantee and range semantics front-loaded, plus a compact cost note. The second sentence largely repeats the first, costing a little efficiency but nothing is confusing.

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 two-parameter generator with full schema coverage and annotations covering safety, the description supplies everything an agent needs: purpose, inclusivity, security property, and cost. Only explicit sibling routing is missing.

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 min and max are already documented as required inclusive integers. The description reinforces the inclusive-range meaning, which is mildly helpful given the schema types both parameters as strings, but adds no further detail. 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?

The description names a specific verb and resource ('Generates a cryptographically secure random integer') and pins down the range semantics as inclusive. It is clearly distinguishable from siblings like generate_random_string and generate_random_color, though it never names those alternatives 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?

Usage is only implied by the tool's nature: an agent can infer it is the right choice when an unpredictable integer is needed. There is no explicit statement of when to prefer it over the sibling generators or any preconditions, so guidance is adequate but thin.

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