Youtube · Capability

YouTube Data API v3 — Playlists

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

Run with Naftiko YoutubePlaylists

What You Can Do

GET
Youtubeplaylistslist — Youtube List Playlists
/v1/playlists
POST
Youtubeplaylistsinsert — Youtube Create a Playlist
/v1/playlists
PUT
Youtubeplaylistsupdate — Youtube Update a Playlist
/v1/playlists
DELETE
Youtubeplaylistsdelete — Youtube Delete a Playlist
/v1/playlists

MCP Tools

youtube-list-playlists

Youtube List Playlists

read-only idempotent
youtube-create-playlist

Youtube Create a Playlist

youtube-update-playlist

Youtube Update a Playlist

idempotent
youtube-delete-playlist

Youtube Delete a Playlist

idempotent

Capability Spec

data-playlists.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: YouTube Data API v3 — Playlists
  description: 'YouTube Data API v3 — Playlists. 4 operations. Lead operation: Youtube List Playlists. Self-contained Naftiko
    capability covering one Youtube business surface.'
  tags:
  - Youtube
  - Playlists
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    YOUTUBE_API_KEY: YOUTUBE_API_KEY
capability:
  consumes:
  - type: http
    namespace: data-playlists
    baseUri: https://www.googleapis.com/youtube/v3
    description: YouTube Data API v3 — Playlists business capability. Self-contained, no shared references.
    resources:
    - name: playlists
      path: /playlists
      operations:
      - name: youtubeplaylistslist
        method: GET
        description: Youtube List Playlists
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: query
          type: string
          description: Comma-separated list of YouTube playlist IDs for the resources being retrieved.
        - name: channelId
          in: query
          type: string
          description: Indicates that the API response should only contain resources created by the channel.
        - name: mine
          in: query
          type: boolean
          description: Set this parameter to true to instruct the API to return playlists owned by the authenticated user.
      - name: youtubeplaylistsinsert
        method: POST
        description: Youtube Create a Playlist
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: youtubeplaylistsupdate
        method: PUT
        description: Youtube Update a Playlist
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: youtubeplaylistsdelete
        method: DELETE
        description: Youtube Delete a Playlist
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: query
          type: string
          description: The ID of the playlist to delete.
          required: true
    authentication:
      type: bearer
      token: '{{env.YOUTUBE_API_KEY}}'
  exposes:
  - type: rest
    namespace: data-playlists-rest
    port: 8080
    description: REST adapter for YouTube Data API v3 — Playlists. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/playlists
      name: playlists
      description: REST surface for playlists.
      operations:
      - method: GET
        name: youtubeplaylistslist
        description: Youtube List Playlists
        call: data-playlists.youtubeplaylistslist
        with:
          id: rest.id
          channelId: rest.channelId
          mine: rest.mine
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: youtubeplaylistsinsert
        description: Youtube Create a Playlist
        call: data-playlists.youtubeplaylistsinsert
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: youtubeplaylistsupdate
        description: Youtube Update a Playlist
        call: data-playlists.youtubeplaylistsupdate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: youtubeplaylistsdelete
        description: Youtube Delete a Playlist
        call: data-playlists.youtubeplaylistsdelete
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: data-playlists-mcp
    port: 9090
    transport: http
    description: MCP adapter for YouTube Data API v3 — Playlists. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: youtube-list-playlists
      description: Youtube List Playlists
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: data-playlists.youtubeplaylistslist
      with:
        id: tools.id
        channelId: tools.channelId
        mine: tools.mine
      outputParameters:
      - type: object
        mapping: $.
    - name: youtube-create-playlist
      description: Youtube Create a Playlist
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: data-playlists.youtubeplaylistsinsert
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: youtube-update-playlist
      description: Youtube Update a Playlist
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: data-playlists.youtubeplaylistsupdate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: youtube-delete-playlist
      description: Youtube Delete a Playlist
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: data-playlists.youtubeplaylistsdelete
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.