Skip to main content
Glama
mcp-divination

mcp-divination

by ZandevOxford

secure_random

Read-only

Draw one-off integers, floats, weighted choices, or non-repeating deals from the operating system's secure random source when you need unpredictable rather than reproducible values.

Instructions

One-off values from the operating system's secure source: integers, floats, choices from a list, or a deal without repeats. Not repeatable; use random or deal with a seed for results that can be reproduced.

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": {
      "kind": "<kind>"
    },
    "name": "secure_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), 'deal' (items, or low and high, with no repeats)
countNoHow many values to return, at most 1000
itemsNoThe items to draw from: any JSON values, returned as given
weightsNoNon-negative integer weights, one per item; omitted means equal

Output Schema

NameRequiredDescriptionDefault
valuesYesThe values drawn

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=false, so the non-repeatability claim largely restates structured data. It still adds context beyond annotations by identifying the OS secure source as the entropy origin and by pointing to the seeded siblings, but it does not discuss cost, entropy availability, or failure modes such as requesting more deals than the range allows.

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 padding, with the capability statement front-loaded and the routing caveat second. Every clause carries information the agent needs at selection time.

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 an output schema present, return values need no explanation, and the annotations cover safety. The description covers modes and reproducibility, which is most of what an agent needs; only edge behavior (bounds violations, insufficient distinct items for a deal) is left entirely to the schema and error responses.

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 description coverage is 100%, so every parameter (low, high, kind, count, items, weights) is already documented in the schema, including the enum semantics for 'kind'. The description only restates the mode list and adds the 'without repeats' characterization of deal, which is marginal value over the structured fields.

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 resource (values from the OS secure source) and enumerates the four draw modes: integers, floats, choices, and deals without repeats. The second sentence names the siblings 'random' and 'deal' as the reproducible alternatives, so an agent can distinguish this tool from them without opening a schema.

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?

Explicitly states the exclusion ('Not repeatable') and the condition that selects an alternative ('use random or deal with a seed for results that can be reproduced'). This is a direct when-to-use / when-not-to-use routing statement.

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