Skip to main content
Glama

Deck of Cards (Unofficial)

Deckofcards Draw Cards

deckofcards_draw_cards
Read-onlyIdempotent

Draw cards from a deck. Returns card details (suit, value) and remaining count. Specify count to draw multiple cards at once.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "deck_id": "3p40paa87x90"
    },
    "name": "deckofcards_draw_cards"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoNumber of cards to draw. Defaults to 1.
deck_idYesThe deck ID returned by new_deck (e.g. "3p40paa87x90").

Output Schema

NameRequiredDescriptionDefault
cardsYesArray of cards drawn
deck_idYesUnique identifier for the deck
remainingYesNumber of cards remaining in the deck

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered structurally. The description adds the response shape (suit/value plus remaining count), but repeats what the output schema already provides and says nothing about what happens when the deck runs out of cards or what errors to expect.

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?

Three short sentences, front-loaded with the action and immediately followed by the return value. Nothing is padded, though the final sentence largely duplicates the schema's count description rather than earning new 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?

An output schema exists and the input schema fully documents both parameters, so the description needn't explain return format further. For a simple two-parameter read-style tool this is nearly complete, with only edge-case behavior (empty deck, invalid ID) left unaddressed.

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 both parameters have descriptions, including the default of 1 for count. The description's 'Specify count to draw multiple cards at once' adds only a mild restatement of the count parameter's behavior, 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?

Specific verb plus resource ('Draw cards from a deck') with a clear statement of what comes back (card details and remaining count). It does not name or contrast with the sibling that precedes it (new_deck), though the schema's deck_id description carries that linkage.

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

Usage Guidelines3/5

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

Usage is only implied: you draw cards when you have an existing deck. There is no explicit when-to-use, when-not-to-use, or routing to alternatives such as new_deck, and the only guidance offered ('specify count to draw multiple cards') is parameter behavior rather than tool selection.

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.