Skip to content

Commit f3ef2e2

Browse files
therohitdascrhq
andcommitted
docs: capability-first Sorting copy (founder approved)
Replaces the defensive Sorting copy with the founder's approved wording across all four places this repo enumerates the endpoint: README tool 8, the SKILL.md bullet (short form, tight surface), references/mcp-tools.md and references/rest-api.md. The members_only and tab=streams / tab=shorts field paragraphs are untouched. Docs only, no version bump. Co-Authored-By: CRHQ <noreply@crhq.ai>
1 parent a4a0bf1 commit f3ef2e2

4 files changed

Lines changed: 7 additions & 38 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -391,19 +391,9 @@ List a channel's feed, paginated. Use `tab` to choose the uploads feed (default,
391391
| `sort` | string | `null` | `latest`, `popular`, or `oldest`. Omit for the uploads feed. Repeat the same value when paginating. |
392392
| `continuation` | string | `null` | Pagination token |
393393

394-
Existing calls are untouched: omitting sort returns the uploads feed exactly as before. sort=latest is a different view (YouTube's Videos tab, Shorts excluded), not a re-ordering of it.
394+
**Sorting.** Add sort=latest, popular, or oldest to channel/videos to get a channel's videos in the order you want, for example its most-popular uploads first. A sorted page returns about 30 videos (an unsorted page returns about 100), and every page costs the same 1 credit.
395395

396-
| | `tab: "videos"`, no `sort` | `tab: "videos"` + any `sort` |
397-
| --- | --- | --- |
398-
| Source | uploads playlist | channel Videos tab |
399-
| Page size | ~100 | ~30 |
400-
| `playlist_info` | populated | `null` |
401-
| Shorts | mixed in | excluded (use `tab: "shorts"`) |
402-
| Members-only videos | excluded | included, flagged `members_only: true` |
403-
404-
Sort reads ~3.3x more pages (~30/page vs ~100), so it costs ~3.3x credits. Use it when you need ordering; most integrations don't.
405-
406-
`tab: "shorts"` and `tab: "streams"` read the same feed either way, so there `sort` only reorders.
396+
When paging, send the same sort on each request.
407397

408398
Every item carries **`members_only`**: `true` only when YouTube badges the video "Members only", and those items have no `viewCountText`. It is always `false` on the uploads feed, on `tab: "shorts"`, and on playlists.
409399

‎skills/youtube/SKILL.md‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,7 @@ Successful calls cost 1 credit unless a tool states otherwise below. Failed and
9595

9696
- **`get_channel_latest_videos` is free.** Reach for it first for anything about recent
9797
uploads. Use `list_channel_videos` only when the user genuinely wants the whole catalogue.
98-
- `list_channel_videos` takes an optional `sort` (`latest` / `popular` / `oldest`). Existing calls are untouched: omitting sort returns the uploads feed exactly as before. sort=latest is a different view (YouTube's Videos tab, Shorts excluded), not a re-ordering of it.
99-
Omitted reads the uploads playlist (~100/page, Shorts mixed in, members-only videos excluded);
100-
any value reads the channel Videos tab (~30/page, long-form only, members-only videos included
101-
and flagged `members_only`). They are different sets, not one list in two orders. A sorted page holds ~30 items instead of ~100, so paging a whole catalogue with `sort` set costs roughly 3.3x the pages and 3.3x the credits. Omit `sort` when you just want newest-first.
98+
- Sort a channel's videos by latest, popular, or oldest, for example most-popular first. Sorted pages return about 30 videos (unsorted about 100); each page costs 1 credit. When paging, send the same sort on each request.
10299
- **Search, then transcribe selectively.** Transcribing a whole page of search results is the
103100
single most common way to waste credits. Pick the best 2-3 hits and pull those.
104101
- **Search inside a channel** with `search_channel_videos` rather than listing every video and

‎skills/youtube/references/mcp-tools.md‎

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -168,19 +168,9 @@ or live streams (~48/page), and the optional `sort` to order the Videos tab.
168168
| `sort` | string | `null` | `latest`, `popular`, or `oldest`. Omit for the uploads feed. Repeat the same value when paginating. |
169169
| `continuation` | string | `null` | Pagination token |
170170

171-
Existing calls are untouched: omitting sort returns the uploads feed exactly as before. sort=latest is a different view (YouTube's Videos tab, Shorts excluded), not a re-ordering of it.
171+
**Sorting.** Add sort=latest, popular, or oldest to channel/videos to get a channel's videos in the order you want, for example its most-popular uploads first. A sorted page returns about 30 videos (an unsorted page returns about 100), and every page costs the same 1 credit.
172172

173-
| | `tab: "videos"`, no `sort` | `tab: "videos"` + any `sort` |
174-
| --- | --- | --- |
175-
| Source | uploads playlist | channel Videos tab |
176-
| Page size | ~100 | ~30 |
177-
| `playlist_info` | populated | `null` |
178-
| Shorts | mixed in | excluded (use `tab: "shorts"`) |
179-
| Members-only videos | excluded | included, flagged `members_only: true` |
180-
181-
They are different sets, not one list in two orders. A sorted page holds ~30 items instead of ~100, so paging a whole catalogue with `sort` set costs roughly 3.3x the pages and 3.3x the credits. Omit `sort` when you just want newest-first.
182-
183-
`tab: "shorts"` and `tab: "streams"` read the same feed either way, so there `sort` only reorders.
173+
When paging, send the same sort on each request.
184174

185175
Every item carries **`members_only`**: `true` only when YouTube badges the video "Members only", and those items have no `viewCountText`. It is always `false` on the uploads feed, on `tab: "shorts"`, and on playlists.
186176

‎skills/youtube/references/rest-api.md‎

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -195,17 +195,9 @@ GET /youtube/channel/videos?continuation=TOKEN&sort=popular # repeat tab AND s
195195
Provide **exactly one** of `channel` or `continuation`. The response carries
196196
`continuation_token` and `has_more`.
197197

198-
Existing calls are untouched: omitting sort returns the uploads feed exactly as before. sort=latest is a different view (YouTube's Videos tab, Shorts excluded), not a re-ordering of it.
198+
**Sorting.** Add sort=latest, popular, or oldest to channel/videos to get a channel's videos in the order you want, for example its most-popular uploads first. A sorted page returns about 30 videos (an unsorted page returns about 100), and every page costs the same 1 credit.
199199

200-
| | `tab=videos`, no `sort` | `tab=videos` + any `sort` |
201-
| --- | --- | --- |
202-
| Source | uploads playlist | channel Videos tab |
203-
| Page size | ~100 | ~30 |
204-
| `playlist_info` | populated | `null` |
205-
| Shorts | mixed in | excluded (use `tab=shorts`) |
206-
| Members-only videos | excluded | included, flagged `members_only: true` |
207-
208-
They are different sets, not one list in two orders. A sorted page holds ~30 items instead of ~100, so paging a whole catalogue with `sort` set costs roughly 3.3x the pages and 3.3x the credits. Omit `sort` when you just want newest-first. `tab=shorts` / `tab=streams` read the same feed either way; there `sort` only reorders.
200+
When paging, send the same sort on each request.
209201

210202
Every item carries `members_only`, `true` only when YouTube badges it "Members only", and those
211203
items have no `viewCountText`. `tab=streams` items carry `lengthText` and `publishedTimeText`

0 commit comments

Comments
 (0)