Skip to main content
Glama

Draw Cards

draw_cards
Read-onlyIdempotent

Draws a spread of 1–78 random cards from the Pipeworx original tarot deck (Rider–Waite–Smith tradition), each with its own orientation and traditional meaning for that orientation.

Input Schema

NameRequiredDescriptionDefault
seedNoReproduce a previous draw by passing back the seed it returned. Omit for fresh randomness.
countYesNumber of cards to draw (1–78).
reversalsNoAllow reversed orientation (50% chance per card). Default true; pass false to always draw upright.
session_idNoDraw from an open tarot_shuffle session instead of a fresh single-call draw (hosted only; never repeats a card within the session).

Output Schema

NameRequiredDescriptionDefault
metaNo
seedNo
cardsNoArray of drawn tarot cards
countNoNumber of cards drawn

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed25 schema fields changed
    • addedInput schema / properties / reversals
      Added value: +{
      +  "description": "Allow reversed orientation (50% chance per card). Default true; pass false to always draw upright.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / seed
      Added value: +{
      +  "description": "Reproduce a previous draw by passing back the seed it returned. Omit for fresh randomness.",
      +  "type": "string"
      +}
    • addedInput schema / properties / session_id
      Added value: +{
      +  "description": "Draw from an open tarot_shuffle session instead of a fresh single-call draw (hosted only; never repeats a card within the session).",
      +  "type": "string"
      +}
    • addedOutput schema / properties / cards / items / properties / arcana
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / cards / items / properties / astrological_correspondence
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • removedOutput schema / properties / cards / items / properties / desc
      Removed value: -{
      -  "description": "Detailed description of the card",
      -  "type": "string"
      -}
    • addedOutput schema / properties / cards / items / properties / element
      Added value: +{
      +  "type": [
      +    "null",
      +    "string"
      +  ]
      +}
    • addedOutput schema / properties / cards / items / properties / id
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / cards / items / properties / image_description
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / cards / items / properties / keywords
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / cards / items / properties / meaning
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / cards / items / properties / meaning_rev
      Removed value: -{
      -  "description": "Reversed meaning of the card",
      -  "type": "string"
      -}
    • removedOutput schema / properties / cards / items / properties / meaning_up
      Removed value: -{
      -  "description": "Upright meaning of the card",
      -  "type": "string"
      -}
    • removedOutput schema / properties / cards / items / properties / name_short
      Removed value: -{
      -  "description": "Short identifier for the card",
      -  "type": "string"
      -}
    • addedOutput schema / properties / cards / items / properties / orientation
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / cards / items / properties / rank
      Added value: +{
      +  "type": [
      +    "null",
      +    "number"
      +  ]
      +}
    • addedOutput schema / properties / cards / items / properties / rank_name
      Added value: +{
      +  "type": [
      +    "null",
      +    "string"
      +  ]
      +}
    • changedOutput schema / properties / cards / items / properties / suit / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +[
      +  "null",
      +  "string"
      +]
    • removedOutput schema / properties / cards / items / properties / type
      Removed value: -{
      -  "description": "Card type (e.g. Major Arcana, Minor Arcana)",
      -  "type": "string"
      -}
    • removedOutput schema / properties / cards / items / properties / value
      Removed value: -{
      -  "description": "Card value or number",
      -  "type": "string"
      -}
    • removedOutput schema / properties / cards / items / properties / value_int
      Removed value: -{
      -  "description": "Integer representation of card value",
      -  "type": "number"
      -}
    • removedOutput schema / properties / cards / items / required
      Removed value: -[
      -  "name",
      -  "name_short",
      -  "value",
      -  "value_int",
      -  "type",
      -  "suit",
      -  "meaning_up",
      -  "meaning_rev",
      -  "desc"
      -]
    • addedOutput schema / properties / meta
      Added value: +{
      +  "properties": {
      +    "deck": {
      +      "properties": {
      +        "id": {
      +          "type": "string"
      +        },
      +        "version": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "procedure": {
      +      "type": "string"
      +    },
      +    "seed": {
      +      "type": "string"
      +    },
      +    "source": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / seed
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "count",
      -  "cards"
      -]
  2. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "count": 3
      +  },
      +  {
      +    "count": 10
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "cards": {
      +      "description": "Array of drawn tarot cards",
      +      "items": {
      +        "properties": {
      +          "desc": {
      +            "description": "Detailed description of the card",
      +            "type": "string"
      +          },
      +          "meaning_rev": {
      +            "description": "Reversed meaning of the card",
      +            "type": "string"
      +          },
      +          "meaning_up": {
      +            "description": "Upright meaning of the card",
      +            "type": "string"
      +          },
      +          "name": {
      +            "description": "Full name of the tarot card",
      +            "type": "string"
      +          },
      +          "name_short": {
      +            "description": "Short identifier for the card",
      +            "type": "string"
      +          },
      +          "suit": {
      +            "description": "Suit of the card (null for Major Arcana)",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "type": {
      +            "description": "Card type (e.g. Major Arcana, Minor Arcana)",
      +            "type": "string"
      +          },
      +          "value": {
      +            "description": "Card value or number",
      +            "type": "string"
      +          },
      +          "value_int": {
      +            "description": "Integer representation of card value",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "name_short",
      +          "value",
      +          "value_int",
      +          "type",
      +          "suit",
      +          "meaning_up",
      +          "meaning_rev",
      +          "desc"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "count": {
      +      "description": "Number of cards drawn",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "count",
      +    "cards"
      +  ],
      +  "type": "object"
      +}
  3. Changed2 schema fields changed
    • removedInput schema / examples
      Removed value: -[
      -  {
      -    "count": 3
      -  },
      -  {
      -    "count": 10
      -  }
      -]
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "cards": {
      -      "description": "Array of drawn tarot cards",
      -      "items": {
      -        "properties": {
      -          "desc": {
      -            "description": "Detailed description of the card",
      -            "type": "string"
      -          },
      -          "meaning_rev": {
      -            "description": "Reversed meaning of the card",
      -            "type": "string"
      -          },
      -          "meaning_up": {
      -            "description": "Upright meaning of the card",
      -            "type": "string"
      -          },
      -          "name": {
      -            "description": "Full name of the tarot card",
      -            "type": "string"
      -          },
      -          "name_short": {
      -            "description": "Short identifier for the card",
      -            "type": "string"
      -          },
      -          "suit": {
      -            "description": "Suit of the card (null for Major Arcana)",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "type": {
      -            "description": "Card type (e.g. Major Arcana, Minor Arcana)",
      -            "type": "string"
      -          },
      -          "value": {
      -            "description": "Card value or number",
      -            "type": "string"
      -          },
      -          "value_int": {
      -            "description": "Integer representation of card value",
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "name",
      -          "name_short",
      -          "value",
      -          "value_int",
      -          "type",
      -          "suit",
      -          "meaning_up",
      -          "meaning_rev",
      -          "desc"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "count": {
      -      "description": "Number of cards drawn",
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "count",
      -    "cards"
      -  ],
      -  "type": "object"
      -}New value: +null
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "cards": {
      +      "description": "Array of drawn tarot cards",
      +      "items": {
      +        "properties": {
      +          "desc": {
      +            "description": "Detailed description of the card",
      +            "type": "string"
      +          },
      +          "meaning_rev": {
      +            "description": "Reversed meaning of the card",
      +            "type": "string"
      +          },
      +          "meaning_up": {
      +            "description": "Upright meaning of the card",
      +            "type": "string"
      +          },
      +          "name": {
      +            "description": "Full name of the tarot card",
      +            "type": "string"
      +          },
      +          "name_short": {
      +            "description": "Short identifier for the card",
      +            "type": "string"
      +          },
      +          "suit": {
      +            "description": "Suit of the card (null for Major Arcana)",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "type": {
      +            "description": "Card type (e.g. Major Arcana, Minor Arcana)",
      +            "type": "string"
      +          },
      +          "value": {
      +            "description": "Card value or number",
      +            "type": "string"
      +          },
      +          "value_int": {
      +            "description": "Integer representation of card value",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "name_short",
      +          "value",
      +          "value_int",
      +          "type",
      +          "suit",
      +          "meaning_up",
      +          "meaning_rev",
      +          "desc"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "count": {
      +      "description": "Number of cards drawn",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "count",
      +    "cards"
      +  ],
      +  "type": "object"
      +}
  5. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "count": 3
      +  },
      +  {
      +    "count": 10
      +  }
      +]
  6. First observed

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare this as a non-destructive, read-only, open-world operation. The description adds useful behavior context that the draw is random and that each card has orientation and traditional meaning, but it does not discuss reproducibility, retry semantics, or the relationship between randomness and the idempotent hint. The annotations do not contradict the description outright, but the description leaves some behavioral nuance for the schema to carry.

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 a single front-loaded sentence with no wasted wording. It communicates the action, range, deck, and orientation behavior efficiently.

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, so the description need not explain return values, and annotations cover safety. It is sufficiently complete for an agent to know it is drawing random tarot cards, though it does not address sibling differentiation or session/seed nuances beyond what the schema supplies.

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, seed, reversals, and session_id are already documented in structured fields. The description reinforces the count range and orientation behavior, but adds little parameter meaning beyond what the schema already provides.

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 gives a specific verb and resource: it draws a spread of 1–78 random tarot cards from a named deck. It is clear what the tool does, but it does not distinguish itself from close siblings such as random_card, tarot_spread, or tarot_shuffle.

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?

There is no guidance on when to use this tool versus alternatives. With siblings like random_card, tarot_spread, tarot_shuffle, and get_card, the agent must infer the selection criteria rather than being told.

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.