Skip to main content
Glama

Shuffle a list

random_shuffle
Read-only

Shuffle a comma- or line-separated list into a random order (Fisher-Yates with a cryptographic random source). Use for draw orders, seating and playlists. Example: items=1,2,3,4,5. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

NameRequiredDescriptionDefault
itemsYesComma-separated items

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.2/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: the underlying Fisher-Yates algorithm with a cryptographic random source, the billing model ($0.01/call, 25 free, failed calls free), and the cost consequence of non-idempotency ('each call is charged, so repeats are not free'). It also restates 'changes nothing', consistent with readOnlyHint=true and destructiveHint=false.

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 algorithm are front-loaded, and each sentence carries information. The pricing is somewhat overstated across two sentences ('Price $0.01/call ... first 25 free' and 'each call is charged, so repeats are not free'), a minor redundancy.

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 one-parameter, no-output-schema utility, the description covers input format, example, algorithm, safety and cost — enough to call it correctly. The one gap is return shape: it doesn't say whether output is comma-separated, line-separated, or an array, which the absent output schema leaves undocumented.

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% and the schema already says 'Comma-separated items', so the baseline is 3. The description goes beyond it by accepting line-separated input as well and showing a filled-in example, which resolves the main ambiguity about the delimiter.

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 and resource ('Shuffle a comma- or line-separated list into a random order') and names the algorithm, which pins down semantics precisely. The use cases (draw orders, seating, playlists) implicitly separate it from random_pick and random_teams, but 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 Guidelines4/5

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

'Use for draw orders, seating and playlists' gives clear positive context plus a concrete example (items=1,2,3,4,5). It stops short of naming an alternative or stating when NOT to use it (e.g. picking one winner → random_pick).

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.