Skip to main content
Glama

random_shuffle_list

Read-onlyIdempotent

Shuffle a list of items randomly to produce a new order, useful for random sampling, fair selection, or unbiased ordering.

Instructions

Shuffle a list randomly.

Input Schema

NameRequiredDescriptionDefault
itemsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.5

TDQS

C2.5/5.0
Behavior1/5

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

Annotations declare idempotentHint=true, but the description says the output is random, which means repeated calls with the same input will not return the same result. That is a direct conflict with the structured metadata. The description also fails to say whether the input list is mutated or a new shuffled copy is returned.

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?

One short, front-loaded sentence with no filler. Brevity is appropriate for a low-complexity tool, though it leaves the behavior underspecified.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter tool with no output schema and no annotations carrying behavioral detail, the description should still convey what comes back (a reordered array) and whether the original list is preserved. Neither is stated, so an agent cannot predict the return value.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for the single `items` parameter, so the description must compensate. 'Shuffle a list' only loosely implies that `items` is the list to be shuffled; nothing about element type, ordering, duplicate handling, or output shape is added.

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+resource ('Shuffle a list'), which distinguishes it from siblings like random_pick_from_list (selects one element) and random_string/random_number. No explicit sibling callout, but the operation is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No guidance on when to use this instead of random_pick_from_list, sort_lines, or random_number, and no preconditions (e.g. empty list, single-element list) or exclusions given.

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