Skip to main content
Glama

TrueRandomness

Random integer (paid)

random_int_signed
Idempotent

Return a uniformly distributed random integer in [min, max] with the same drand quicknet provenance as random_int, plus a payment receipt. Costs $0.01 per call in stablecoin over the Machine Payments Protocol. New unpaid challenge requests are safety-limited. An unpaid call answers with a payment challenge (JSON-RPC -32042); a client that cannot pay should use random_int instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxNoInclusive upper bound. Integer. Defaults to 100.
minNoInclusive lower bound. Integer. Defaults to 1.
requestIdNoRequired UUID generated once by the client and reused to recover this paid draw.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxNo
minNo
errorNo
valueNo
statusYes
provenanceNo
certificateNo
retryAfterSecondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare safety hints (idempotentHint=true, readOnlyHint=false, openWorldHint=true); the description supplies the substantive behavioral facts they don't: $0.01 per-call cost, stablecoin/Machine Payments Protocol settlement, safety-limited unpaid challenges, and the specific payment-challenge response code. It also implicitly justifies idempotentHint via requestId reuse for recovery. No contradiction with the non-read-only annotation.

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 core action and provenance, then payment cost, then fallback guidance — a sensible ordering. It is dense but nearly every clause carries information; the payment-protocol and response-code details are slightly compressed into one long stretch.

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?

With an output schema present, return values needn't be explained, and the description covers the unusual aspects an agent needs: cost, settlement mechanism, unpaid-call behavior, and the fallback tool. Nothing material is missing for correct invocation.

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 coverage is 100%, so min, max, and requestId are already fully documented in the schema (including inclusive bounds, integer defaults, and requestId's UUID-reuse purpose). The description adds no parameter-level syntax or format detail 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.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Return a uniformly distributed random integer in [min, max]'), names the provenance (drand quicknet) and the differentiator (paid, includes a payment receipt). This cleanly separates it from the sibling random_int, which the description explicitly identifies as the unpaid counterpart.

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

Usage Guidelines5/5

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

Gives an explicit routing rule: 'a client that cannot pay should use random_int instead,' and describes what happens to an unpaid caller (payment challenge, JSON-RPC -32042). The condition that selects this tool over its sibling is stated, not implied.

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