Skip to main content
Glama
mcp-divination

mcp-divination

by ZandevOxford

random

Read-onlyIdempotent

Generate repeatable integers, floats, or list choices with replacement from a seed; a position-based stream continues across calls for consistent, resumable results.

Instructions

Values from the seeded random stream, with replacement: integers, floats or choices from a list. The value at each position depends only on the seed, the position and the arguments, so a stream continues across calls from next_offset.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "seed": "<seed>",
      "kind": "<kind>"
    },
    "name": "random"
  }
}

Input Schema

NameRequiredDescriptionDefault
lowNoInteger bound, included in the range, as decimal digits such as "6". Ranges beyond 2^53 give their values as strings
highNoInteger bound, included in the range, as decimal digits such as "6". Ranges beyond 2^53 give their values as strings
kindYesWhat to draw: 'integer' (needs low and high), 'float' (in [0, 1)), 'choice' (needs items, optional weights)
seedYesAny string; secure_seed gives a fresh one. The same seed repeats results
countNoHow many values to return, at most 1000
itemsNoThe items to draw from: any JSON values, returned as given
offsetNoPosition in the stream to start at, from 0, as decimal digits such as "0"; pass the last next_offset back as given0
weightsNoNon-negative integer weights, one per item; omitted means equal

Output Schema

NameRequiredDescriptionDefault
seedYesThe seed drawn from
offsetYesPosition of the first value
valuesYesThe values drawn
algorithmYesVersion of the algorithm; results repeat only within one
next_offsetYesThe offset that continues this stream

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and idempotentHint; the description adds genuinely new behavior: values are drawn with replacement, each position depends only on seed/position/arguments, and a stream continues across calls via the offset. That explains the determinism behind the idempotent hint and is real context beyond structured fields, though return/pagination details are left to the output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero filler. It is front-loaded with what is produced, then immediately delivers the determinism/streaming rule an agent needs to call it repeatedly.

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 an 8-parameter tool with a full output schema (so return values need not be explained), the description covers the essential mental model: deterministic, seeded, with replacement, resumable by offset. Only routing guidance against the secure siblings 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 all eight parameters are already documented, including kind enum values, bounds, weights and offset. The description adds the conceptual model that makes offset meaningful (stream continuation) but no syntax or format detail beyond the schema, so 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?

States a specific verb-plus-resource: draws values from a seeded random stream with replacement, enumerating the three output kinds (integers, floats, choices). The word 'seeded' implicitly distinguishes it from the secure_random/secure_seed siblings, though no sibling is named 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 implied rather than stated: reproducibility ('the same seed repeats results' from the schema, and the determinism sentence here) suggests when to prefer this over a secure source, but the description never says when to use this versus secure_random or secure_seed, nor any exclusions.

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