Skip to main content
Glama

Random pick

random_pick

Pick one or more items at random from a list you send, with or without repeats. The list is yours, so this is the unbiased chooser an agent needs when it has options and no reason to prefer any. $0.005 per call, paid over x402 (USDC).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNoHow many to pick, 1-100. Defaults to 1.
itemsYesThe options, comma-separated. A JSON array of strings is also accepted in a POST body.
repeatNoAllow the same item more than once. Defaults to false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / items / description
      Previous value: -"The options. In a GET, a comma-separated list."New value: +"The options, comma-separated. A JSON array of strings is also accepted in a POST body."
    • changedInput schema / properties / items / type
      Previous value: -"array"New value: +"string"
  2. Added

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the cost and payment rail ('$0.005 per call, paid over x402 (USDC)'), which is real added value, but says nothing about edge cases (e.g., requesting more items than exist without repeat), error behavior, or return format.

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?

Core purpose is front-loaded in the first sentence with zero waste. The middle sentence ('The list is yours, so this is the unbiased chooser an agent needs...') leans marketing and could be trimmed, but the whole stays short.

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 simple 3-param, all-documented tool with no annotations or output schema, the description covers purpose, usage framing, and pricing. It lacks any edge-case guidance but is largely sufficient for correct invocation.

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 count, items, and repeat are already fully documented with defaults. The description's 'with or without repeats' maps to repeat but adds no syntax or format detail beyond the schema; baseline 3 applies.

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 ('Pick one or more items at random from a list you send') and adds modifiers ('with or without repeats'). The scope 'from a list you send' implicitly distinguishes it from fixed-set siblings like random_coinflip, random_dice, and random_number, but no sibling is named outright.

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 a clear condition for use: 'when it has options and no reason to prefer any.' This is good context but stops short of naming alternatives or stating exclusions (e.g., use random_shuffle to reorder rather than select).

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.

Resources