Battle.net · Capability

Battle.net Hearthstone Game Data API — Decks

Battle.net Hearthstone Game Data API — Decks. 1 operations. Lead operation: Battle.net Get Hearthstone Deck. Self-contained Naftiko capability covering one Battle Net business surface.

Run with Naftiko Battle NetDecks

What You Can Do

GET
Getdeck — Battle.net Get Hearthstone Deck
/v1/hearthstone/deck

MCP Tools

battle-net-get-hearthstone-deck

Battle.net Get Hearthstone Deck

read-only idempotent

Capability Spec

hearthstone-game-data-decks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Battle.net Hearthstone Game Data API — Decks
  description: 'Battle.net Hearthstone Game Data API — Decks. 1 operations. Lead operation: Battle.net Get Hearthstone Deck.
    Self-contained Naftiko capability covering one Battle Net business surface.'
  tags:
  - Battle Net
  - Decks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    BATTLE_NET_API_KEY: BATTLE_NET_API_KEY
capability:
  consumes:
  - type: http
    namespace: hearthstone-game-data-decks
    baseUri: https://us.api.blizzard.com
    description: Battle.net Hearthstone Game Data API — Decks business capability. Self-contained, no shared references.
    resources:
    - name: hearthstone-deck
      path: /hearthstone/deck
      operations:
      - name: getdeck
        method: GET
        description: Battle.net Get Hearthstone Deck
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: code
          in: query
          type: string
          description: A code that identifies a deck. You can copy a deck code by right-clicking on a deck in the Hearthstone
            client and selecting Copy.
          required: true
        - name: locale
          in: query
          type: string
          description: The locale to reflect in localized data.
    authentication:
      type: bearer
      token: '{{env.BATTLE_NET_API_KEY}}'
  exposes:
  - type: rest
    namespace: hearthstone-game-data-decks-rest
    port: 8080
    description: REST adapter for Battle.net Hearthstone Game Data API — Decks. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/hearthstone/deck
      name: hearthstone-deck
      description: REST surface for hearthstone-deck.
      operations:
      - method: GET
        name: getdeck
        description: Battle.net Get Hearthstone Deck
        call: hearthstone-game-data-decks.getdeck
        with:
          code: rest.code
          locale: rest.locale
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: hearthstone-game-data-decks-mcp
    port: 9090
    transport: http
    description: MCP adapter for Battle.net Hearthstone Game Data API — Decks. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: battle-net-get-hearthstone-deck
      description: Battle.net Get Hearthstone Deck
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hearthstone-game-data-decks.getdeck
      with:
        code: tools.code
        locale: tools.locale
      outputParameters:
      - type: object
        mapping: $.