Twitch · Capability

Twitch Drops API — Entitlements

Twitch Drops API — Entitlements. 2 operations. Lead operation: Twitch Get Drops Entitlements. Self-contained Naftiko capability covering one Twitch business surface.

Run with Naftiko TwitchEntitlements

What You Can Do

GET
Getdropsentitlements — Twitch Get Drops Entitlements
/v1/entitlements/drops
PATCH
Updatedropsentitlements — Twitch Update Drops Entitlements
/v1/entitlements/drops/update

MCP Tools

twitch-get-drops-entitlements

Twitch Get Drops Entitlements

read-only idempotent
twitch-update-drops-entitlements

Twitch Update Drops Entitlements

idempotent

Capability Spec

drops-entitlements.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Twitch Drops API — Entitlements
  description: 'Twitch Drops API — Entitlements. 2 operations. Lead operation: Twitch Get Drops Entitlements. Self-contained
    Naftiko capability covering one Twitch business surface.'
  tags:
  - Twitch
  - Entitlements
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TWITCH_API_KEY: TWITCH_API_KEY
capability:
  consumes:
  - type: http
    namespace: drops-entitlements
    baseUri: https://api.twitch.tv/helix
    description: Twitch Drops API — Entitlements business capability. Self-contained, no shared references.
    resources:
    - name: entitlements-drops
      path: /entitlements/drops
      operations:
      - name: getdropsentitlements
        method: GET
        description: Twitch Get Drops Entitlements
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: query
          type: string
          description: Entitlement ID to filter by
        - name: user_id
          in: query
          type: string
          description: User ID to filter by
        - name: game_id
          in: query
          type: string
          description: Game ID to filter by
        - name: fulfillment_status
          in: query
          type: string
          description: Filter by fulfillment status
        - name: first
          in: query
          type: integer
          description: Maximum number of results to return
        - name: after
          in: query
          type: string
          description: Cursor for forward pagination
    - name: entitlements-drops-update
      path: /entitlements/drops/update
      operations:
      - name: updatedropsentitlements
        method: PATCH
        description: Twitch Update Drops Entitlements
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.TWITCH_API_KEY}}'
  exposes:
  - type: rest
    namespace: drops-entitlements-rest
    port: 8080
    description: REST adapter for Twitch Drops API — Entitlements. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/entitlements/drops
      name: entitlements-drops
      description: REST surface for entitlements-drops.
      operations:
      - method: GET
        name: getdropsentitlements
        description: Twitch Get Drops Entitlements
        call: drops-entitlements.getdropsentitlements
        with:
          id: rest.id
          user_id: rest.user_id
          game_id: rest.game_id
          fulfillment_status: rest.fulfillment_status
          first: rest.first
          after: rest.after
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/entitlements/drops/update
      name: entitlements-drops-update
      description: REST surface for entitlements-drops-update.
      operations:
      - method: PATCH
        name: updatedropsentitlements
        description: Twitch Update Drops Entitlements
        call: drops-entitlements.updatedropsentitlements
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: drops-entitlements-mcp
    port: 9090
    transport: http
    description: MCP adapter for Twitch Drops API — Entitlements. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: twitch-get-drops-entitlements
      description: Twitch Get Drops Entitlements
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: drops-entitlements.getdropsentitlements
      with:
        id: tools.id
        user_id: tools.user_id
        game_id: tools.game_id
        fulfillment_status: tools.fulfillment_status
        first: tools.first
        after: tools.after
      outputParameters:
      - type: object
        mapping: $.
    - name: twitch-update-drops-entitlements
      description: Twitch Update Drops Entitlements
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: drops-entitlements.updatedropsentitlements
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.