Skip to main content
Glama
Tanod MCP Server

Tanod MCP Server

Official

generate_random

Read-only

Generate cryptographically strong random integers, floats, bytes, UUIDs, dice rolls, list picks, and shuffles from the OS CSPRNG for secure sampling, simulations, and key generation.

Instructions

utilpeek: Generate cryptographically strong random numbers, bytes, UUIDs, dice rolls, picks and shuffles. For UUIDs and ULIDs use generate_ids. Returns values from the OS CSPRNG (Python secrets): integers (uniform, inclusive range), floats in [min, max), 1-1,024 random bytes (hex or base64), UUID v4, dice rolls such as 3d6 or 2d10+3 with the total, picks from a list or a shuffle. Input: An empty body gives one integer 0-100. Parameters that do not fit the kind, count over 1,000 or more than 1,000 items are a 422 before any payment (not charged). Nothing is stored or logged. Generate secret keys locally. Typically under 0.1 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day.

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

Input Schema

NameRequiredDescriptionDefault
maxNoint: highest value, inclusive (default 100). float: upper bound, exclusive (default 1); max must exceed min.
minNoint: lowest value, inclusive (default 0). float: lowest, inclusive (default 0).
diceNodice: an expression such as 3d6, d20 or 2d10+3 (1-100 dice of 2-1000 sides, optional +/- modifier; default 1d6).
kindNoint (default), float, bytes, uuid (v4), dice, pick or shuffle.int
countNoHow many values: int, float, uuid, pick.
itemsNopick / shuffle: a comma-separated list (at most 1,000 items of 200 characters; blanks are dropped).
lengthNobytes: how many random bytes.
uniqueNopick: draw without replacement (count at most the number of items).
encodingNobytes: hex (default) or base64.hex

Output Schema

NameRequiredDescriptionDefault
maxNo
minNo
diceNo
kindNo
countNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
rollsNo
totalNo
valueNo
lengthNo
sourceNo
uniqueNo
valuesNo
encodingNo
modifierNo
item_countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.4

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world, non-idempotent), and the description adds substantial context beyond them: validation failures return 422 before any charge, nothing is stored or logged, typical latency under 0.1 s, and the price/free-tier quota. These are exactly the operational facts an agent needs before invoking a paid endpoint.

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?

Purpose and the sibling redirect are front-loaded, and the sentence about validation limits and no-logging earns its space. The middle section is dense and somewhat run-on, mixing examples, input defaults and pricing into a single block.

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 9-parameter, zero-required, multi-mode tool with an output schema, the description covers the modes, the default invocation, the error/limit behavior and the cost model. 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.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so parameter meaning is already carried by the schema (including dice expression syntax, count/length bounds and encoding enums). The description restates the same bounds and adds only the empty-body default behavior, which is a modest supplement rather than new semantic depth.

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?

Names a specific verb and a full set of resources (random integers, floats, bytes, UUIDs, dice rolls, picks, shuffles) and explicitly routes UUID/ULID generation to the generate_ids sibling. An agent can tell what this tool produces without opening the schema.

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?

Gives concrete when-to-use guidance: 'For UUIDs and ULIDs use generate_ids', plus 'An empty body gives one integer 0-100' and 'Generate secret keys locally'. The one wobble is that kind=uuid is also advertised here, creating mild tension with the redirect to generate_ids, but the routing intent is still recoverable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools