Youtube · Capability

YouTube Data API — Subscriptions

YouTube Data API — Subscriptions. 3 operations. Lead operation: Youtube List Subscriptions. Self-contained Naftiko capability covering one Youtube business surface.

Run with Naftiko YoutubeSubscriptions

What You Can Do

GET
Listsubscriptions — Youtube List Subscriptions
/v1/subscriptions
POST
Insertsubscription — Youtube Subscribe to Channel
/v1/subscriptions
DELETE
Deletesubscription — Youtube Unsubscribe from Channel
/v1/subscriptions/{subscriptionid}

MCP Tools

youtube-list-subscriptions

Youtube List Subscriptions

read-only idempotent
youtube-subscribe-channel

Youtube Subscribe to Channel

youtube-unsubscribe-channel

Youtube Unsubscribe from Channel

idempotent

Capability Spec

data-subscriptions-2.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: YouTube Data API — Subscriptions
  description: 'YouTube Data API — Subscriptions. 3 operations. Lead operation: Youtube List Subscriptions. Self-contained
    Naftiko capability covering one Youtube business surface.'
  tags:
  - Youtube
  - Subscriptions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    YOUTUBE_API_KEY: YOUTUBE_API_KEY
capability:
  consumes:
  - type: http
    namespace: data-subscriptions-2
    baseUri: https://www.googleapis.com/youtube/v3
    description: YouTube Data API — Subscriptions business capability. Self-contained, no shared references.
    resources:
    - name: subscriptions
      path: /subscriptions
      operations:
      - name: listsubscriptions
        method: GET
        description: Youtube List Subscriptions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: insertsubscription
        method: POST
        description: Youtube Subscribe to Channel
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: subscriptions-subscriptionId
      path: /subscriptions/{subscriptionId}
      operations:
      - name: deletesubscription
        method: DELETE
        description: Youtube Unsubscribe from Channel
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.YOUTUBE_API_KEY}}'
  exposes:
  - type: rest
    namespace: data-subscriptions-2-rest
    port: 8080
    description: REST adapter for YouTube Data API — Subscriptions. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/subscriptions
      name: subscriptions
      description: REST surface for subscriptions.
      operations:
      - method: GET
        name: listsubscriptions
        description: Youtube List Subscriptions
        call: data-subscriptions-2.listsubscriptions
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: insertsubscription
        description: Youtube Subscribe to Channel
        call: data-subscriptions-2.insertsubscription
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/subscriptions/{subscriptionid}
      name: subscriptions-subscriptionid
      description: REST surface for subscriptions-subscriptionId.
      operations:
      - method: DELETE
        name: deletesubscription
        description: Youtube Unsubscribe from Channel
        call: data-subscriptions-2.deletesubscription
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: data-subscriptions-2-mcp
    port: 9090
    transport: http
    description: MCP adapter for YouTube Data API — Subscriptions. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: youtube-list-subscriptions
      description: Youtube List Subscriptions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: data-subscriptions-2.listsubscriptions
      outputParameters:
      - type: object
        mapping: $.
    - name: youtube-subscribe-channel
      description: Youtube Subscribe to Channel
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: data-subscriptions-2.insertsubscription
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: youtube-unsubscribe-channel
      description: Youtube Unsubscribe from Channel
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: data-subscriptions-2.deletesubscription
      outputParameters:
      - type: object
        mapping: $.