Youtube · Capability

YouTube Data API v3 — PlaylistItems

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

Run with Naftiko YoutubePlaylistItems

What You Can Do

GET
Youtubeplaylistitemslist — Youtube List Playlist Items
/v1/playlistitems
POST
Youtubeplaylistitemsinsert — Youtube Add an Item to a Playlist
/v1/playlistitems
DELETE
Youtubeplaylistitemsdelete — Youtube Remove a Playlist Item
/v1/playlistitems

MCP Tools

youtube-list-playlist-items

Youtube List Playlist Items

read-only idempotent
youtube-add-item-playlist

Youtube Add an Item to a Playlist

youtube-remove-playlist-item

Youtube Remove a Playlist Item

idempotent

Capability Spec

data-playlistitems.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: YouTube Data API v3 — PlaylistItems
  description: 'YouTube Data API v3 — PlaylistItems. 3 operations. Lead operation: Youtube List Playlist Items. Self-contained
    Naftiko capability covering one Youtube business surface.'
  tags:
  - Youtube
  - PlaylistItems
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    YOUTUBE_API_KEY: YOUTUBE_API_KEY
capability:
  consumes:
  - type: http
    namespace: data-playlistitems
    baseUri: https://www.googleapis.com/youtube/v3
    description: YouTube Data API v3 — PlaylistItems business capability. Self-contained, no shared references.
    resources:
    - name: playlistItems
      path: /playlistItems
      operations:
      - name: youtubeplaylistitemslist
        method: GET
        description: Youtube List Playlist Items
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: playlistId
          in: query
          type: string
          description: Identifies the playlist whose items are being listed. Required unless the id parameter specifies playlist
            item IDs.
        - name: id
          in: query
          type: string
          description: Comma-separated list of playlist item IDs for the resources being retrieved.
        - name: videoId
          in: query
          type: string
          description: Specifies that the request should return only items containing the given video.
      - name: youtubeplaylistitemsinsert
        method: POST
        description: Youtube Add an Item to a Playlist
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: youtubeplaylistitemsdelete
        method: DELETE
        description: Youtube Remove a Playlist Item
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: query
          type: string
          description: The ID of the playlist item to delete.
          required: true
    authentication:
      type: bearer
      token: '{{env.YOUTUBE_API_KEY}}'
  exposes:
  - type: rest
    namespace: data-playlistitems-rest
    port: 8080
    description: REST adapter for YouTube Data API v3 — PlaylistItems. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/playlistitems
      name: playlistitems
      description: REST surface for playlistItems.
      operations:
      - method: GET
        name: youtubeplaylistitemslist
        description: Youtube List Playlist Items
        call: data-playlistitems.youtubeplaylistitemslist
        with:
          playlistId: rest.playlistId
          id: rest.id
          videoId: rest.videoId
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: youtubeplaylistitemsinsert
        description: Youtube Add an Item to a Playlist
        call: data-playlistitems.youtubeplaylistitemsinsert
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: youtubeplaylistitemsdelete
        description: Youtube Remove a Playlist Item
        call: data-playlistitems.youtubeplaylistitemsdelete
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: data-playlistitems-mcp
    port: 9090
    transport: http
    description: MCP adapter for YouTube Data API v3 — PlaylistItems. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: youtube-list-playlist-items
      description: Youtube List Playlist Items
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: data-playlistitems.youtubeplaylistitemslist
      with:
        playlistId: tools.playlistId
        id: tools.id
        videoId: tools.videoId
      outputParameters:
      - type: object
        mapping: $.
    - name: youtube-add-item-playlist
      description: Youtube Add an Item to a Playlist
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: data-playlistitems.youtubeplaylistitemsinsert
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: youtube-remove-playlist-item
      description: Youtube Remove a Playlist Item
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: data-playlistitems.youtubeplaylistitemsdelete
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.