Skip to main content
Glama

sampler_shuffle

Shuffle an array of items with optional seed for reproducible results. Returns a new shuffled copy.

Instructions

[sampler] Return shuffled copy of items. Deterministic with seed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
seedNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries full burden. It correctly notes non-destructive behavior ('copy') and determinism via seed. However, it does not mention any potential side effects or permissions, though none are expected for a shuffling operation.

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?

Single sentence with no redundancy. Every word adds value: prefix for categorization, verb, noun, and key behavioral trait (determinism with seed).

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?

Given the simplicity of the tool (shuffle a list) and the presence of an output schema, the description covers core behavior and the non-obvious deterministic aspect. Missing edge case handling (e.g., empty list) but doesn't detract significantly.

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?

Schema description coverage is 0%, so description must compensate. The description adds meaning for 'seed' (deterministic) but for 'items' it only implies 'the list to shuffle'. No elaboration on type constraints or edge cases, leaving the agent to infer from context.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states verb 'return' and resource 'shuffled copy of items'. The prefix '[sampler]' categorizes it among sibling sampler tools, and 'Deterministic with seed' distinguishes it from non-deterministic alternatives like sampler_random_choice.

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?

No explicit when-to-use or when-not-to-use guidance. The name implies shuffling all items, but does not contrast with sampler_sample_list (which samples a subset). Usage context is implied but not spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0-co/agent-friend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server