Skip to main content
Glama

Agent Data Tools: Utilities

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.003/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

TableJSON Schema
NameRequiredDescriptionDefault
itemsYesComma-separated items

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only, non-destructive, non-idempotent behavior, but the description adds real value beyond them: the pricing model ($0.003/call, first 25 free, failed calls free) and the explicit warning that repeats are charged, which reinforces the idempotentHint=false annotation with a practical consequence. The Fisher-Yates/crypto-source detail also adds trust context not present in annotations.

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?

Front-loaded with the core action and mechanism, followed by use cases and then pricing. Every sentence carries information, though the pricing/free-call detail makes the tail heavier than strictly needed for tool selection.

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 single-parameter compute tool with no output schema, the description covers purpose, input format, cost, and safety profile adequately. The one gap is that it never states the return shape (e.g., how the shuffled list is formatted), which an agent must infer.

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 the baseline is 3. The description goes slightly beyond the schema by noting that items may be comma- OR line-separated (the schema only says comma-separated) and supplies a concrete example (items=1,2,3,4,5), which meaningfully clarifies the accepted input format.

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 algorithm, so the action is unambiguous. However, it never distinguishes itself from closely related siblings like random_pick or random_teams, leaving the agent to infer which randomization tool to choose.

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?

"Use for draw orders, seating and playlists" gives concrete usage contexts, which is more than nothing. But there is no when-not guidance and no named alternative, so an agent deciding between this and random_teams or random_pick gets only implied routing.

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.