Skip to main content
Glama

hearthstone_deck

Read-only

Decode a Hearthstone deck and return its deck code, format, hero, hero power, class, card objects and card count. Send either code, or ids (one per copy, repeated or comma-separated) with format wild or standard (default standard), hero, and sideboardCards as cardId:ownerCardId pairs; locale has 14 values (default en_US). Use hearthstone_card for one card and hearthstone_cards to search cards.

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": "hearthstone_deck"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNoNumeric card IDs for the ids form, repeated or comma-separated, one entry per copy (up to 80). Send either code or ids.
codeNoDeck code to decode, as copied from the game. Send either code or ids.
heroNoOptional numeric hero card ID for the ids form; the source picks the class's default hero when omitted, but a deck of only neutral cards needs it (the source otherwise hangs until its gateway answers 504).
formatNoDeck format for the ids form: wild or standard (or the deck-code numbers 1 and 2); defaults to standard. The source answers Classic and Twist requests as Standard, so they are not accepted.
localeNoOptional site locale for card text, for example en_US, de_DE or zh_TW; defaults to en_US.
sideboardCardsNoOptional sideboard cards for the ids form as comma-separated cardId:ownerCardId pairs (for example E.T.C. or Zilliax modules).

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / hero / description
      Previous value: -"Optional numeric hero card ID for the ids form; the source picks the class's default hero when omitted."New value: +"Optional numeric hero card ID for the ids form; the source picks the class's default hero when omitted, but a deck of only neutral cards needs it (the source otherwise hangs until its gateway answers 504)."
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the readOnly/openWorld annotations it discloses real quirks: Classic and Twist requests silently resolve to Standard, and an all-neutral deck without hero hangs until the gateway returns 504. What it leaves unsaid is precedence (whether code ignores hero/format when both are supplied) and what happens on an invalid deck code.

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?

Front-loaded with purpose, then usage, then alternatives — no wasted sentences. The second sentence is long and parenthesis-heavy, packing four parameter behaviors plus a failure warning into one clause chain, which costs some readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, and annotations carry the safety profile. Everything an agent needs to choose an input mode and avoid the known 504 hang is present.

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%, so the schema already documents repeats/comma-separation for ids, the standard default, and sideboard cardId:ownerCardId pairs. The description mostly restates this, adding only marginally new facts (14 locale values, the 504 failure mode for hero), so baseline 3 applies.

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?

"Decode a Hearthstone deck and return its deck code, format, hero, hero power, class, card objects and card count" gives a specific verb, resource, and enumerated output set. The two accepted input forms (code vs. ids) are stated up front, and the closing sentence distinguishes it from hearthstone_card (single card) and hearthstone_cards (search).

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 states the two mutually exclusive input modes and names the alternatives explicitly: hearthstone_card for one card, hearthstone_cards to search cards. An agent can route between all three without opening a schema.

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.