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. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "items": "<items>"
    },
    "name": "random_pick"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoHow many to pick (default 1)
itemsYesComma-separated items

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / count / maximum
      Previous value: -9007199254740991New value: +20000
    • changedInput schema / properties / count / minimum
      Previous value: --9007199254740991New value: +1
  2. First observed

TDQS

A4/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=false, and idempotentHint=false. The description adds genuinely new behavioral context beyond those: per-call billing ('$0.01/call', 'first 10 free', 'failed calls free') and the fact that repeated calls cost money because results vary — which reinforces the non-idempotent hint rather than contradicting it. 'Reads or computes only and changes nothing' restates readOnlyHint, but the pricing and repeat-cost disclosure earns credit.

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?

Purpose and constraint are front-loaded, the use cases follow, and the example is compact. The pricing clause is the only slightly commercial-feeling sentence, but it carries behavioral information about repeat costs and is not redundant.

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, fully-documented, non-destructive read/compute tool with no output schema, the description covers purpose, input format, use cases, and cost behavior. The only gap is that it doesn't say what the response looks like (e.g., whether it returns the picked items as a string or list), which is minor given no output schema exists.

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 description adds one real detail beyond the schema — that the list may be line-separated as well as comma-separated — plus a worked example, but never mentions the 'count' parameter or its bounds (1–20000).

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?

The description names a specific verb and resource ('Pick one or more items at random... from a comma- or line-separated list') and adds a meaningful constraint ('without repeats') plus a concrete example. It implicitly distinguishes this from reordering tools like random_shuffle, but never names or contrasts a sibling explicitly.

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?

It supplies concrete use cases ('raffles, choosing who goes first, or breaking ties fairly') that tell an agent when this tool fits. There are no exclusions or named alternatives (e.g., vs random_shuffle or random_teams), so it stops short of full routing guidance.

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