Twitch · Capability

Twitch Helix API — Bits

Twitch Helix API — Bits. 2 operations. Lead operation: Twitch Get Cheermotes. Self-contained Naftiko capability covering one Twitch business surface.

Run with Naftiko TwitchBits

What You Can Do

GET
Getcheermotes — Twitch Get Cheermotes
/v1/bits/cheermotes
GET
Getbitsleaderboard — Twitch Get Bits Leaderboard
/v1/bits/leaderboard

MCP Tools

twitch-get-cheermotes

Twitch Get Cheermotes

read-only idempotent
twitch-get-bits-leaderboard

Twitch Get Bits Leaderboard

read-only idempotent

Capability Spec

helix-bits.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Twitch Helix API — Bits
  description: 'Twitch Helix API — Bits. 2 operations. Lead operation: Twitch Get Cheermotes. Self-contained Naftiko capability
    covering one Twitch business surface.'
  tags:
  - Twitch
  - Bits
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TWITCH_API_KEY: TWITCH_API_KEY
capability:
  consumes:
  - type: http
    namespace: helix-bits
    baseUri: https://api.twitch.tv/helix
    description: Twitch Helix API — Bits business capability. Self-contained, no shared references.
    resources:
    - name: bits-cheermotes
      path: /bits/cheermotes
      operations:
      - name: getcheermotes
        method: GET
        description: Twitch Get Cheermotes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: broadcaster_id
          in: query
          type: string
          description: The ID of the broadcaster whose Cheermotes to retrieve
    - name: bits-leaderboard
      path: /bits/leaderboard
      operations:
      - name: getbitsleaderboard
        method: GET
        description: Twitch Get Bits Leaderboard
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: count
          in: query
          type: integer
          description: Number of results to return
        - name: period
          in: query
          type: string
          description: Time period for the leaderboard
        - name: started_at
          in: query
          type: string
          description: Start date for the leaderboard period
        - name: user_id
          in: query
          type: string
          description: Filter by specific user ID
    authentication:
      type: bearer
      token: '{{env.TWITCH_API_KEY}}'
  exposes:
  - type: rest
    namespace: helix-bits-rest
    port: 8080
    description: REST adapter for Twitch Helix API — Bits. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/bits/cheermotes
      name: bits-cheermotes
      description: REST surface for bits-cheermotes.
      operations:
      - method: GET
        name: getcheermotes
        description: Twitch Get Cheermotes
        call: helix-bits.getcheermotes
        with:
          broadcaster_id: rest.broadcaster_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/bits/leaderboard
      name: bits-leaderboard
      description: REST surface for bits-leaderboard.
      operations:
      - method: GET
        name: getbitsleaderboard
        description: Twitch Get Bits Leaderboard
        call: helix-bits.getbitsleaderboard
        with:
          count: rest.count
          period: rest.period
          started_at: rest.started_at
          user_id: rest.user_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: helix-bits-mcp
    port: 9090
    transport: http
    description: MCP adapter for Twitch Helix API — Bits. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: twitch-get-cheermotes
      description: Twitch Get Cheermotes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: helix-bits.getcheermotes
      with:
        broadcaster_id: tools.broadcaster_id
      outputParameters:
      - type: object
        mapping: $.
    - name: twitch-get-bits-leaderboard
      description: Twitch Get Bits Leaderboard
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: helix-bits.getbitsleaderboard
      with:
        count: tools.count
        period: tools.period
        started_at: tools.started_at
        user_id: tools.user_id
      outputParameters:
      - type: object
        mapping: $.