Skip to main content
Glama
mrsknetwork

YouTube MCP

by mrsknetwork

list_trending_videos

Read-only

Fetch trending YouTube videos for a specified region and optional category. Returns video snippets, duration, and statistics like views and likes.

Instructions

Fetch the currently most popular videos on YouTube for a given region and optional category. Returns snippet (title, channelTitle, publishedAt), contentDetails (duration), and statistics (viewCount, likeCount, commentCount) for each video. Use list_video_categories to discover valid category_id values for your region. Use page_token to paginate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
region_codeNoISO 3166-1 alpha-2 country code (e.g., 'US', 'IN', 'GB'). Defaults to 'US'.
category_idNoYouTube video category ID to filter trending videos. Use list_video_categories to discover valid IDs for your region.
max_resultsNoNumber of results to return. Default 10, max 50.
page_tokenNoToken from a previous response to fetch the next page of results.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYes
nextPageTokenNo
pageInfoNo
itemsYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations indicate readOnlyHint and openWorldHint. The description adds that it returns snippet, contentDetails, and statistics, and supports pagination. No contradictions; it provides useful behavioral context beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences: first states purpose and returned fields, second gives additional guidance. It is concise, front-loaded, and contains no unnecessary words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 4 parameters all described in schema and an output schema present, the description covers region, category, pagination, and hints at using another tool. It sufficiently addresses the tool's context and behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds value by explaining the relationship with list_video_categories for category_id and the use of page_token, going beyond the schema's descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it fetches currently most popular videos on YouTube for a given region and optional category. It lists specific returned fields, distinguishing it from sibling tools like get_video_metadata or search_content.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description advises using list_video_categories to discover valid category_id values and mentions page_token for pagination. While it doesn't explicitly state when not to use the tool, it provides clear context for correct usage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mrsknetwork/ytmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server