Skip to main content
Glama

Pick at random from a list

random_pick
Read-only

Pick one or more items at random (without repeats) from a comma- or line-separated list. Use for raffles, choosing who goes first, or breaking ties fairly. Example: items=Ada,Alan,Grace,Linus. 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
countNoHow many to pick (default 1)
itemsYesComma-separated items

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A3.9/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing cost and auth mechanics ('Price $0.01/call via x402 USDC or a card key', 'first 25 free; failed calls free') and explaining the practical consequence of idempotentHint=false ('each call is charged, so repeats are not free'). Still silent on the return shape, which matters for a tool with no output schema.

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, then example, then pricing caveat — a sensible order with little waste. 'Reads or computes only and changes nothing' partly duplicates readOnlyHint/destructiveHint and could be trimmed.

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 two-parameter, no-output-schema tool, the description covers action, format, use cases, and billing — enough to call it correctly and safely. The one real gap is that nothing says what the response contains (picked items only, or the remainder as well), which the agent must discover by calling.

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 100%, so the baseline is 3. The example 'items=Ada,Alan,Grace,Linus' demonstrates the accepted list format concretely, but nothing is added about count semantics such as whether it must be ≤ list length or what happens when count exceeds the list size.

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 ('Pick one or more items at random (without repeats) from a comma- or line-separated list'), which is precise enough to separate it from random_number and random_color. It never names the near-neighbors random_shuffle or random_teams, so the agent must infer that those reorder/partition rather than sample.

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?

Concrete usage contexts are given ('raffles, choosing who goes first, or breaking ties fairly'), which clearly frames when to reach for this tool. There are no exclusions or named alternatives, so the agent gets positive guidance but no routing rules against siblings.

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.