Skip to main content
Glama

random_shuffle

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. Costs $0.001 in USDC on Base per successful call, paid with x402.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYesComma-separated items

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare safety flags; the description goes well beyond them by disclosing the algorithm (Fisher-Yates with a cryptographic random source, implying unbiased, non-reproducible output), the payment model ($0.001 USDC on Base), the payment protocol (x402), and that charging happens only per successful call. This is exactly the kind of cost, auth, and determinism context annotations cannot carry.

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?

Three dense sentences, each earning its place: what it does, when to use it, what it costs. The purpose is front-loaded and no sentence is filler.

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?

Covers input format, use cases, algorithm, and the unusual payment requirement, which is the highest-risk unknown for an agent. The one gap is the return shape (presumably the shuffled list as a string) and how the x402 payment is actually presented, but with no output schema and simple input, this is close to complete.

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?

Single parameter with 100% schema description coverage, so the schema already documents 'items' as comma-separated. The description adds newline-separated support not present in the schema, which is genuinely useful, but it gives no guidance on delimiters in item content or empty/whitespace handling. Baseline 3 is appropriate given the schema does most of the work.

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 (shuffle) and resource (comma- or line-separated list) plus the exact algorithm and randomness source, so an agent knows precisely what it does. It does not name or contrast any sibling (e.g. random_pick or random_teams), leaving the agent to infer the distinction from the verb alone.

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 concrete when-to-use contexts rather than leaving usage implied. There is no guidance on when NOT to use it (e.g. when you want a single pick or a deterministic ordering), so it falls short of explicit alternatives.

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.

Resources