naftiko: 1.0.0-alpha2 info: label: YouTube Data API v3 — Channels description: 'YouTube Data API v3 — Channels. 2 operations. Lead operation: Youtube List Channels. Self-contained Naftiko capability covering one Youtube business surface.' tags: - Youtube - Channels created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: YOUTUBE_API_KEY: YOUTUBE_API_KEY capability: consumes: - type: http namespace: data-channels baseUri: https://www.googleapis.com/youtube/v3 description: YouTube Data API v3 — Channels business capability. Self-contained, no shared references. resources: - name: channels path: /channels operations: - name: youtubechannelslist method: GET description: Youtube List Channels outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: query type: string description: Comma-separated list of YouTube channel IDs for the resources being retrieved. - name: mine in: query type: boolean description: Set this parameter to true to instruct the API to return channels owned by the authenticated user. - name: forUsername in: query type: string description: A YouTube username identifying a channel. The API returns the channel associated with that username. - name: youtubechannelsupdate method: PUT description: Youtube Update Channel Metadata 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.YOUTUBE_API_KEY}}' exposes: - type: rest namespace: data-channels-rest port: 8080 description: REST adapter for YouTube Data API v3 — Channels. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/channels name: channels description: REST surface for channels. operations: - method: GET name: youtubechannelslist description: Youtube List Channels call: data-channels.youtubechannelslist with: id: rest.id mine: rest.mine forUsername: rest.forUsername outputParameters: - type: object mapping: $. - method: PUT name: youtubechannelsupdate description: Youtube Update Channel Metadata call: data-channels.youtubechannelsupdate with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: data-channels-mcp port: 9090 transport: http description: MCP adapter for YouTube Data API v3 — Channels. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: youtube-list-channels description: Youtube List Channels hints: readOnly: true destructive: false idempotent: true call: data-channels.youtubechannelslist with: id: tools.id mine: tools.mine forUsername: tools.forUsername outputParameters: - type: object mapping: $. - name: youtube-update-channel-metadata description: Youtube Update Channel Metadata hints: readOnly: false destructive: false idempotent: true call: data-channels.youtubechannelsupdate with: body: tools.body outputParameters: - type: object mapping: $.