Search videos
readyoutube.search_videosmcp: youtube_search_videos
Search YouTube for videos (each search uses 100 quota units, so keep them targeted).
| Argument | Type | Description |
|---|
| query | string | Search terms. |
| channel_id | string | Only videos from this channel. |
| order | string relevance | date | viewCount | rating | Sort order. Default: relevance |
| published_after | string | Only videos published after this RFC 3339 time. |
| max_results | integer | Results per page (1-50). Default: 10 |
| page_token | string | next_page_token from the previous page. |
curl -X POST https://driftglass.io/v1/tools/youtube.search_videos/execute \
-H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entity_id":"default","arguments":{}}'Get video
readyoutube.get_videomcp: youtube_get_video
Get a video's details, privacy status and statistics.
| Argument | Type | Description |
|---|
| video_idrequired | string | Video id (the v= part of a watch URL), or the full URL. |
curl -X POST https://driftglass.io/v1/tools/youtube.get_video/execute \
-H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entity_id":"default","arguments":{"video_id":"<video_id>"}}'Get channel
readyoutube.get_channelmcp: youtube_get_channel
Get the connected channel (default), or another channel by id or @handle, with its statistics.
| Argument | Type | Description |
|---|
| channel_id | string | Channel id. |
| handle | string | Channel handle, e.g. @google. |
curl -X POST https://driftglass.io/v1/tools/youtube.get_channel/execute \
-H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entity_id":"default","arguments":{}}'List channel videos
readyoutube.list_channel_videosmcp: youtube_list_channel_videos
List a channel's uploads, newest first (the connected channel by default).
| Argument | Type | Description |
|---|
| channel_id | string | Channel id; the connected channel when omitted. |
| max_results | integer | Results per page (1-50). Default: 25 |
| page_token | string | next_page_token from the previous page. |
curl -X POST https://driftglass.io/v1/tools/youtube.list_channel_videos/execute \
-H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entity_id":"default","arguments":{}}'List playlists
readyoutube.list_playlistsmcp: youtube_list_playlists
List the connected channel's playlists, or another channel's public ones.
| Argument | Type | Description |
|---|
| channel_id | string | Channel id; the connected channel when omitted. |
| max_results | integer | Results per page (1-50). Default: 25 |
| page_token | string | next_page_token from the previous page. |
curl -X POST https://driftglass.io/v1/tools/youtube.list_playlists/execute \
-H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entity_id":"default","arguments":{}}'List playlist videos
readyoutube.list_playlist_itemsmcp: youtube_list_playlist_items
List the videos in a playlist, with the playlist item ids that remove_from_playlist takes.
| Argument | Type | Description |
|---|
| playlist_idrequired | string | Playlist id. |
| max_results | integer | Results per page (1-50). Default: 25 |
| page_token | string | next_page_token from the previous page. |
curl -X POST https://driftglass.io/v1/tools/youtube.list_playlist_items/execute \
-H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entity_id":"default","arguments":{"playlist_id":"<playlist_id>"}}'List captions
readyoutube.list_captionsmcp: youtube_list_captions
List the caption tracks of a video.
| Argument | Type | Description |
|---|
| video_idrequired | string | Video id (the v= part of a watch URL), or the full URL. |
curl -X POST https://driftglass.io/v1/tools/youtube.list_captions/execute \
-H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entity_id":"default","arguments":{"video_id":"<video_id>"}}'Download captions
readyoutube.download_captionmcp: youtube_download_caption
Download a caption track of a video the connected channel owns, as SRT or plain WebVTT text.
| Argument | Type | Description |
|---|
| caption_idrequired | string | Caption track id from list_captions. |
| format | string srt | vtt | sbv | Format. Default: srt |
curl -X POST https://driftglass.io/v1/tools/youtube.download_caption/execute \
-H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entity_id":"default","arguments":{"caption_id":"<caption_id>"}}'Get video analytics
readyoutube.get_video_analyticsmcp: youtube_get_video_analytics
Get analytics for one of the connected channel's videos over a date range (views, watch time, likes, …), optionally broken down by day, country or traffic source.
| Argument | Type | Description |
|---|
| video_idrequired | string | Video id (the v= part of a watch URL), or the full URL. |
| start_daterequired | string | First day, YYYY-MM-DD. |
| end_daterequired | string | Last day, YYYY-MM-DD. |
| metrics | string | Comma-separated metrics. Default: views,estimatedMinutesWatched,averageViewDuration,likes,comments,subscribersGained,subscribersLost |
| dimensions | string | Optional dimension, e.g. day, country, video, insightTrafficSourceType. |
curl -X POST https://driftglass.io/v1/tools/youtube.get_video_analytics/execute \
-H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entity_id":"default","arguments":{"video_id":"<video_id>","start_date":"<start_date>","end_date":"<end_date>"}}'Get channel analytics
readyoutube.get_channel_analyticsmcp: youtube_get_channel_analytics
Get analytics for the connected channel over a date range, optionally broken down by day, video, country or traffic source.
| Argument | Type | Description |
|---|
| start_daterequired | string | First day, YYYY-MM-DD. |
| end_daterequired | string | Last day, YYYY-MM-DD. |
| metrics | string | Comma-separated metrics. Default: views,estimatedMinutesWatched,averageViewDuration,likes,comments,subscribersGained,subscribersLost |
| dimensions | string | Optional dimension, e.g. day, country, video, insightTrafficSourceType. |
curl -X POST https://driftglass.io/v1/tools/youtube.get_channel_analytics/execute \
-H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entity_id":"default","arguments":{"start_date":"<start_date>","end_date":"<end_date>"}}'Upload video
writeyoutube.upload_videomcp: youtube_upload_video
Upload a video from a public URL (up to 90 MB) with title, description, tags and privacy. Set `publish_at` to schedule a private video to go public.
| Argument | Type | Description |
|---|
| video_urlrequired | string | Public URL of the video file. |
| titlerequired | string | Title (max 100 characters). |
| description | string | Description. |
| tags | string[] | Tags. |
| category_id | string | Category id (22 = People & Blogs, 28 = Science & Technology, 27 = Education). Default: 22 |
| privacy_status | string public | unlisted | private | Privacy. Default: private |
| publish_at | string | RFC 3339 time to publish (needs privacy_status private). |
| made_for_kids | boolean | Whether the video is made for kids. Default: false |
| contains_synthetic_media | boolean | Whether the video contains realistic altered or AI-generated content. Default: false |
curl -X POST https://driftglass.io/v1/tools/youtube.upload_video/execute \
-H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entity_id":"default","arguments":{"video_url":"<video_url>","title":"<title>"}}'Update video
writeyoutube.update_videomcp: youtube_update_video
Change a video's title, description, tags, category or privacy. Fields you leave out stay as they are.
| Argument | Type | Description |
|---|
| video_idrequired | string | Video id (the v= part of a watch URL), or the full URL. |
| title | string | Title. |
| description | string | Description. |
| tags | string[] | Tags (replaces all). |
| category_id | string | Category id. |
| privacy_status | string public | unlisted | private | Privacy. |
| publish_at | string | RFC 3339 time to publish a private video. |
curl -X POST https://driftglass.io/v1/tools/youtube.update_video/execute \
-H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entity_id":"default","arguments":{"video_id":"<video_id>"}}'Set thumbnail
writeyoutube.set_thumbnailmcp: youtube_set_thumbnail
Set a video's custom thumbnail from a public JPEG or PNG URL (under 2 MB; the channel must be allowed custom thumbnails).
| Argument | Type | Description |
|---|
| video_idrequired | string | Video id (the v= part of a watch URL), or the full URL. |
| image_urlrequired | string | Public image URL. |
curl -X POST https://driftglass.io/v1/tools/youtube.set_thumbnail/execute \
-H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entity_id":"default","arguments":{"video_id":"<video_id>","image_url":"<image_url>"}}'Delete video
writeyoutube.delete_videomcp: youtube_delete_video
Permanently delete one of the connected channel's videos.
| Argument | Type | Description |
|---|
| video_idrequired | string | Video id (the v= part of a watch URL), or the full URL. |
curl -X POST https://driftglass.io/v1/tools/youtube.delete_video/execute \
-H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entity_id":"default","arguments":{"video_id":"<video_id>"}}'Create playlist
writeyoutube.create_playlistmcp: youtube_create_playlist
Create a playlist on the connected channel.
| Argument | Type | Description |
|---|
| titlerequired | string | Title. |
| description | string | Description. |
| privacy_status | string public | unlisted | private | Privacy. Default: public |
curl -X POST https://driftglass.io/v1/tools/youtube.create_playlist/execute \
-H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entity_id":"default","arguments":{"title":"<title>"}}'Update playlist
writeyoutube.update_playlistmcp: youtube_update_playlist
Rename a playlist or change its description or privacy.
| Argument | Type | Description |
|---|
| playlist_idrequired | string | Playlist id. |
| title | string | Title. |
| description | string | Description. |
| privacy_status | string public | unlisted | private | Privacy. |
curl -X POST https://driftglass.io/v1/tools/youtube.update_playlist/execute \
-H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entity_id":"default","arguments":{"playlist_id":"<playlist_id>"}}'Delete playlist
writeyoutube.delete_playlistmcp: youtube_delete_playlist
Delete a playlist (the videos stay).
| Argument | Type | Description |
|---|
| playlist_idrequired | string | Playlist id. |
curl -X POST https://driftglass.io/v1/tools/youtube.delete_playlist/execute \
-H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entity_id":"default","arguments":{"playlist_id":"<playlist_id>"}}'Add video to playlist
writeyoutube.add_to_playlistmcp: youtube_add_to_playlist
Add a video to a playlist, at the end or at a position.
| Argument | Type | Description |
|---|
| playlist_idrequired | string | Playlist id. |
| video_idrequired | string | Video id (the v= part of a watch URL), or the full URL. |
| position | integer | Position (0 is first). |
curl -X POST https://driftglass.io/v1/tools/youtube.add_to_playlist/execute \
-H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entity_id":"default","arguments":{"playlist_id":"<playlist_id>","video_id":"<video_id>"}}'Remove video from playlist
writeyoutube.remove_from_playlistmcp: youtube_remove_from_playlist
Remove an item from a playlist by its playlist item id (from list_playlist_items).
| Argument | Type | Description |
|---|
| playlist_item_idrequired | string | Playlist item id. |
curl -X POST https://driftglass.io/v1/tools/youtube.remove_from_playlist/execute \
-H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entity_id":"default","arguments":{"playlist_item_id":"<playlist_item_id>"}}'