Skip to main content
Glama
mcp-divination

mcp-divination

by ZandevOxford

deal

Read-onlyIdempotent

Draw non-repeating selections from a list or integer range using a seed; continue from the returned offset to get the next values without repeats.

Instructions

Deal from a deck without repeats: the deck is items, or the integers low to high, shuffled by the seed. Continue from next_offset, passing the same deck each call. Each seed deals the deck once; past the end, take a new seed.

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>"
    },
    "name": "deal"
  }
}

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

Output Schema

NameRequiredDescriptionDefault
seedYesThe seed drawn from
sizeYesItems in the deck
offsetYesPosition of the first value
valuesYesThe values drawn
algorithmYesVersion of the algorithm; results repeat only within one
remainingYesItems still to deal for this seed
next_offsetYesThe offset that continues this stream

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint; the description goes further by disclosing the stateful cursor model (offset/next_offset), determinism per seed, no-repeat guarantees, and end-of-deck behavior. Remaining gaps are edge-case behavior such as invalid or out-of-range offsets.

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?

Three dense sentences with no filler, led by the core concept and followed by the continuation rule and the exhaustion rule. Slightly jargon-heavy but every sentence carries a distinct instruction.

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 a six-parameter, stateful dealing tool with an output schema and full annotation coverage, the description covers composition, determinism, continuation, and exhaustion. Only input-conflict and error semantics are absent, which are minor against the rest.

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%, so baseline is 3, but the description adds real meaning: it explains the deck is defined by either items or the low-to-high integer range, and it links offset to the next_offset output value that should be fed back verbatim. It doesn't resolve what happens when both deck sources are passed.

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?

"Deal from a deck without repeats" names a specific verb and resource, and the seed-shuffle and deck-composition clauses pin down exactly what is produced. It behaviorally separates itself from random-draw siblings ("without repeats", "each seed deals the deck once") without naming them, so an agent can still infer the difference.

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?

It gives concrete usage rules: pass the same deck on each call, continue from next_offset, and take a new seed once the deck is exhausted. What's missing is guidance on conflicting inputs (what happens if both items and low/high are supplied) or on an offset past the end.

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