Skip to main content
Glama

Agent Data Tools: Utilities

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, count=1. 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
countNoHow many to pick (default 1)
itemsYesComma-separated items

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true, idempotentHint=false. The description adds meaningful context beyond them: sampling is without repeats, there is a per-call charge, failed calls are free, and the first 25 are free. This explains and reinforces the non-idempotent annotation, though it omits return format/ordering.

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 usage, example, and pricing. The pricing/call-cost sentence is somewhat tangential but earns its place by explaining the non-idempotent charge behavior. Minor length bloat but no 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?

For a two-param, no-output-schema tool with annotations covering safety, the description covers purpose, usage, format, and cost. The main gap is what the response looks like (returned picked items and their format), which matters for a picker tool.

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 both parameters (items, count) are already documented; baseline is 3. The description adds a concrete example ('items=Ada,Alan,Grace,Linus, count=1') that clarifies the comma-separated format, but no semantics beyond the schema, and the meaning of 'count' vs 'without repeats' is not elaborated.

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 ('Pick at random') and resource ('one or more items ... from a comma- or line-separated list'), with the 'without repeats' constraint that separates it from random_shuffle. It is clear, though it does not name the sibling it is not (random_shuffle/random_teams), so differentiation is implied rather than explicit.

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?

Gives clear use contexts ('raffles, choosing who goes first, or breaking ties fairly'), which is genuine when-to-use guidance. It offers no when-not or explicit alternative-tool routing (e.g., use random_shuffle to reorder the whole list), so it stops short of a 5.

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.