Blizzard Entertainment · Capability

Hearthstone Game Data API — Cards

Hearthstone Game Data API — Cards. 2 operations. Lead operation: Search Cards. Self-contained Naftiko capability covering one Blizzard Entertainment business surface.

Run with Naftiko Blizzard EntertainmentCards

What You Can Do

GET
Searchcards — Search Cards
/v1/hearthstone/cards
GET
Getcard — Get Card
/v1/hearthstone/cards/{idorslug}

MCP Tools

search-cards

Search Cards

read-only idempotent
get-card

Get Card

read-only idempotent

Capability Spec

blizzard-hearthstone-cards.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Hearthstone Game Data API — Cards
  description: 'Hearthstone Game Data API — Cards. 2 operations. Lead operation: Search Cards. Self-contained Naftiko capability
    covering one Blizzard Entertainment business surface.'
  tags:
  - Blizzard Entertainment
  - Cards
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    BLIZZARD_ENTERTAINMENT_API_KEY: BLIZZARD_ENTERTAINMENT_API_KEY
capability:
  consumes:
  - type: http
    namespace: blizzard-hearthstone-cards
    baseUri: https://us.api.blizzard.com
    description: Hearthstone Game Data API — Cards business capability. Self-contained, no shared references.
    resources:
    - name: hearthstone-cards
      path: /hearthstone/cards
      operations:
      - name: searchcards
        method: GET
        description: Search Cards
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: set
          in: query
          type: string
        - name: class
          in: query
          type: string
        - name: manaCost
          in: query
          type: array
    - name: hearthstone-cards-idOrSlug
      path: /hearthstone/cards/{idOrSlug}
      operations:
      - name: getcard
        method: GET
        description: Get Card
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: idOrSlug
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.BLIZZARD_ENTERTAINMENT_API_KEY}}'
  exposes:
  - type: rest
    namespace: blizzard-hearthstone-cards-rest
    port: 8080
    description: REST adapter for Hearthstone Game Data API — Cards. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/hearthstone/cards
      name: hearthstone-cards
      description: REST surface for hearthstone-cards.
      operations:
      - method: GET
        name: searchcards
        description: Search Cards
        call: blizzard-hearthstone-cards.searchcards
        with:
          set: rest.set
          class: rest.class
          manaCost: rest.manaCost
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/hearthstone/cards/{idorslug}
      name: hearthstone-cards-idorslug
      description: REST surface for hearthstone-cards-idOrSlug.
      operations:
      - method: GET
        name: getcard
        description: Get Card
        call: blizzard-hearthstone-cards.getcard
        with:
          idOrSlug: rest.idOrSlug
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: blizzard-hearthstone-cards-mcp
    port: 9090
    transport: http
    description: MCP adapter for Hearthstone Game Data API — Cards. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: search-cards
      description: Search Cards
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: blizzard-hearthstone-cards.searchcards
      with:
        set: tools.set
        class: tools.class
        manaCost: tools.manaCost
      outputParameters:
      - type: object
        mapping: $.
    - name: get-card
      description: Get Card
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: blizzard-hearthstone-cards.getcard
      with:
        idOrSlug: tools.idOrSlug
      outputParameters:
      - type: object
        mapping: $.