Skip to main content
Glama

Random

random
Read-onlyIdempotent

Use when you need publicly verifiable random numbers: n integers in [min,max], a pick from choices=a,b,c or a unique draw, derived from a drand (League of Entropy) beacon round with round. Returns the paid x402 request for your input (GET /random, $0.001 per call; schema linked). Call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge. First call each day returns the data itself, free; later calls return the paid request.

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

Input Schema

NameRequiredDescriptionDefault
nNohow many values
maxNolargest integer (inclusive)
minNosmallest integer (inclusive)
saltNoyour label mixed into the derivation
roundNoa drand quicknet round that has already been published; default latest
uniqueNono repeated values (draw without replacement)
choicesNocomma-separated items to pick from instead of min/max (up to 100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, so the bar is lower, and the description still adds high-value behavior: $0.001 per call, the first call each day is free and returns data directly, later calls return a paid request, and bad input is refused before any charge. These payment and pre-validation semantics are exactly what the annotations cannot convey; the cost is that the dual return mode (data vs. payment request) is stated in one dense clause rather than elaborated.

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?

Front-loaded with the use case and reasonably compact, but the sentence packing two scopes, four parameters, derivation source, and the payment flow into one clause is dense. Every sentence earns its place, though.

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?

For a 7-parameter, 0-required tool with no output schema, the definition covers purpose, input semantics, pricing, access mechanics, error handling, and the shape of what comes back. Nothing an agent needs in order to call it correctly is missing.

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 100%, per the baseline of 3, and the description adds real meaning on top: it explains that rounds must already be published, that choices substitutes for min/max, and that unique is a draw without replacement. The per-parameter prose is compressed into a single sentence, so the gain over the schema is real but modest.

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?

States a specific verb and resource ('publicly verifiable random numbers') plus the scope: n integers in [min,max], a pick from choices, or a unique draw, derived from a drand beacon round. The 'publicly verifiable' qualifier separates it cleanly from any local or utility RNG a sibling like util_hash might implement.

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?

Opens with an explicit when-to-use trigger ('Use when you need publicly verifiable random numbers') and describes the whole access protocol: take the returned request, call the URL with an x402 or MPP client. It does not name a competing sibling or state when-not-to-use, so it falls short of a 5.

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