Skip to main content
Glama

Random pick

random_pick

Use when an agent has several options and no reason to prefer any, and the choice has to be defensible: picks one or more items from the list you send, with or without repeats, and tells you how many it had to choose from. Do not use to order the whole list (/v1/random/shuffle) or to draw a number in a range (/v1/random/number). No API key, no account. $0.005 per call, paid over x402 (USDC).

Input 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

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and usefully discloses that no API key or account is required, that calls cost $0.005 via x402/USDC, and that the result reports how many items were available. It does not cover rate limits or exact response/error behavior, so it is strong but not complete.

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?

The description is front-loaded with the decision context and exclusions, then closes with concise operational facts about auth and cost. Every sentence contributes useful selection or invocation information.

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 three-parameter utility with full schema coverage and no output schema, the description covers use case, alternatives, repeat behavior, auth, cost, and source-count output. It stops short of describing exact return formatting or edge cases such as insufficient items without repeats.

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 documented by the schema. The description reinforces repeats and count-from behavior but adds little syntax or constraint detail beyond the structured fields.

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?

The description states a specific verb and resource: it picks one or more items from a supplied list. It also distinguishes this from the closest siblings by explicitly excluding ordering the whole list and drawing a number in a range.

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

Usage Guidelines5/5

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

It gives an explicit use condition — several options with no reason to prefer any — and explicit exclusions pointing to /v1/random/shuffle and /v1/random/number. An agent can route correctly without consulting other tools.

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