Skip to main content
Glama

util_random

Read-only

$0.001 via x402: Cryptographically random integers between min and max (default 1 to 100), or floats with float=true; n up to 100. Pay 0.001 USDC through https://store.agentexchange.work/gw/util/random?min=1&max=6&n=2 Via the Agent Exchange store gateway; settled by Coinbase.

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": "util_random"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNon
maxNomax
minNomin
floatNofloat
x_paymentNoSigned x402 payment payload (optional; without it the answer is the price)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only say readOnlyHint and openWorldHint; the description goes well beyond them by disclosing the cost ($0.001), the x402 payment protocol, the exact gateway endpoint, and settlement via Coinbase. That is exactly the kind of paid-call context an agent needs before invoking. The only gap is that it does not restate here that an unpaid call returns the price quote (that detail lives only in the schema).

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?

The functional sentence is front-loaded and dense with useful constraints. The payment clause is long and URL-heavy but carries information an agent cannot get elsewhere. Semicolons make it readable despite being a single sentence.

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 covers input range, float mode, item count cap, price, and the payment handshake, which is most of what a caller needs. What it omits is the shape of the result when n > 1 (list vs. scalar) and the 402 price-response behavior, which the agent only learns from the schema.

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?

Schema coverage is nominally 100%, but the schema 'descriptions' are just the parameter names repeated ('min', 'max', 'n', 'float'), so the description is doing real work: it supplies the default range 1–100, the upper bound of 100 for n, and the meaning of float=true. It does not clarify that these values are typed as strings, which is a notable omission given the schema declares all four as strings.

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 and resource: 'Cryptographically random integers between min and max ... or floats with float=true'. The output type, default range (1 to 100) and the n cap are all spelled out, so an agent immediately knows what it produces. It does not explicitly contrast itself with siblings like util_uuid or util_hash, but the domain is unmistakable.

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 implied rather than stated: the description explains the float switch and the n limit, which tells an agent how to shape a call, but never says when to prefer this tool over a UUID/hash sibling or when a random draw is inappropriate. The payment paragraph tells the agent how to pay, not when to call.

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.