Skip to main content
Glama
tuitamogamer-gpt

youtube-mcp-server

Top Videos by Views

youtube_top_videos
Read-onlyIdempotent

Get the top-performing videos on your YouTube channel ranked by views, with titles, for a specified date range.

Instructions

Return the top-performing videos on the authenticated channel ranked by views, enriched with video titles fetched from the YouTube Data API.

Args:

  • startDate (optional): Inclusive start date in YYYY-MM-DD format. Defaults to 28 days ago.

  • endDate (optional): Inclusive end date in YYYY-MM-DD format. Defaults to today.

  • maxResults (optional): Number of top videos to return (1–50, default 10).

  • response_format (optional): "markdown" (default) or "json".

Returns (JSON shape):

{
  "columns": ["video", "title", "views", "estimatedMinutesWatched", "averageViewDuration",
               "averageViewPercentage", "subscribersGained", "likes"],
  "rows": [["VIDEO_ID", "Video Title", 5000, 12000, 144, 55.3, 80, 200], ...]
}

Examples:

  • "What are my top 5 videos this month?" → maxResults: 5 with appropriate dates.

  • "Best performing videos over the past 90 days" → startDate 90 days ago.

Errors:

  • 403: insufficient scope — re-run npm run auth.

  • 400: invalid date range.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
startDateNoInclusive start date in YYYY-MM-DD format. Defaults to 28 days ago.
endDateNoInclusive end date in YYYY-MM-DD format. Defaults to today.
maxResultsNoNumber of top videos to return (1–50). Defaults to 10.
response_formatNoOutput format: "markdown" (default) for a human-readable table, "json" for the structured payload.markdown
Behavior5/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, openWorldHint=true. The description adds significant behavioral details: it 'returns enriched' data, cites specific error codes (403 scope, 400 invalid date), and describes the exact JSON output shape. No contradictions with annotations.

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

Conciseness4/5

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

The description is well-structured with clear sections (Args, Returns, Examples, Errors). The first sentence is direct. However, it is somewhat verbose (e.g., 'enriched with video titles fetched from the YouTube Data API' is partially redundant given the return shape). Could be slightly trimmed without losing clarity.

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?

Given no output schema, the description provides a detailed JSON shape showing columns and rows. It covers all parameters, default values, range constraints, example usage, and common error messages. Includes the authenticated channel scope. No obvious gaps for a query tool.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all four parameters. The description repeats the same parameter descriptions and adds a response_format explanation with enum values. However, it does not add meaning beyond what the schema provides, such as example values or constraints beyond the schema's min/max. Baseline 3 is appropriate.

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 the tool returns 'top-performing videos on the authenticated channel ranked by views, enriched with video titles.' This is a specific verb+resource combination that distinguishes it from siblings like youtube_list_my_videos (which lists all videos) and youtube_video_performance (which focuses on specific video metrics).

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 provides example queries (e.g., 'What are my top 5 videos this month?') that imply when to use the tool, but it lacks explicit guidance on when not to use it or which alternative tools to consider. The examples help but the absence of exclusions or sibling references leaves some ambiguity.

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/tuitamogamer-gpt/youtube-mcp-server'

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