Skip to main content
Glama

UK Data: Secure generators

draw_cards

Read-onlyIdempotent

Draws a specified number of cards from a shuffled standard 52-card deck using a cryptographically secure random source. (cost: 1 credit)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "draw_cards"
  }
}

Input Schema

NameRequiredDescriptionDefault
num_drawNointeger, required, number of cards to draw (1-52)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior2/5

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

The description adds useful behavior beyond the annotations: a standard 52-card deck, a cryptographically secure random source, and a cost of 1 credit. However, emphasizing that the draw comes from a freshly shuffled random source is in tension with the declared idempotentHint=true, which tells an agent that repeated calls yield the same result; a random draw cannot be idempotent, and the description does nothing to reconcile that.

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?

Two tight sentences with the core action front-loaded, followed by the randomness source and cost. There is no redundant phrasing and no sentence that fails to earn its place.

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 one-parameter read-only tool with full schema coverage and rich annotations, the description covers the essentials and even discloses the credit cost. Minor gaps remain: with no output schema, it does not say how cards are represented (rank/suit strings, whether draws are without replacement, whether the deck resets per call).

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 coverage is 100% and the single num_draw parameter already documents 'integer, required, number of cards to draw (1-52)'. The description only echoes this as 'a specified number of cards', adding no format, range, or edge-case meaning beyond the schema, so the baseline of 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+scope: 'Draws a specified number of cards from a shuffled standard 52-card deck', which is concrete enough that an agent won't confuse it with probability tools like dice_roll_probability or generate_random_number. It stops short of explicitly naming those siblings as alternatives, so it is clear but not fully differentiated.

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

Usage Guidelines2/5

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

The description only says what the tool does; it gives no when-to-use guidance, no exclusions, and no routing against near-siblings such as generate_random_number, dice_roll_probability, or probability_consecutive_rolls. An agent must infer the use case entirely from the name and description.

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