Skip to main content
Glama

channels_listVideos

Retrieve videos from a specific YouTube channel by providing the channel ID and optional max results. Ideal for accessing and managing YouTube content programmatically.

Instructions

Get videos from a specific channel

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channelIdYesThe YouTube channel ID
maxResultsNoMaximum number of results to return

Implementation Reference

  • Core handler function implementing the channels_listVideos tool using YouTube Data API v3 search.list to retrieve videos from a channel.
    async listVideos({ 
      channelId, 
      maxResults = 50 
    }: ChannelVideosParams): Promise<any[]> {
      try {
        this.initialize();
        
        const response = await this.youtube.search.list({
          part: ['snippet'],
          channelId,
          maxResults,
          order: 'date',
          type: ['video']
        });
    
        return response.data.items || [];
      } catch (error) {
        throw new Error(`Failed to list channel videos: ${error instanceof Error ? error.message : String(error)}`);
      }
    }
  • src/server.ts:212-219 (registration)
    Dispatch handler in MCP CallToolRequestHandler that calls the ChannelService.listVideos method.
    case 'channels_listVideos': {
        const result = await channelService.listVideos(args as unknown as ChannelVideosParams);
        return {
            content: [{
                type: 'text',
                text: JSON.stringify(result, null, 2)
            }]
        };
  • src/server.ts:113-130 (registration)
    Tool registration in ListToolsRequestHandler including name, description, and JSON input schema.
    {
        name: 'channels_listVideos',
        description: 'Get videos from a specific channel',
        inputSchema: {
            type: 'object',
            properties: {
                channelId: {
                    type: 'string',
                    description: 'The YouTube channel ID',
                },
                maxResults: {
                    type: 'number',
                    description: 'Maximum number of results to return',
                },
            },
            required: ['channelId'],
        },
    },
  • TypeScript interface defining the input parameters (ChannelVideosParams) used by the handler and schema.
    export interface ChannelVideosParams {
      channelId: string;
      maxResults?: number;
    }
Behavior2/5

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

With no annotations provided, the description carries full burden but only states what the tool does without behavioral details. It doesn't disclose if this is a read-only operation, rate limits, authentication needs, pagination behavior, or what the return format looks like, which are critical for a tool with no output schema.

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 a single, efficient sentence with zero waste. It's front-loaded and appropriately sized for the tool's complexity, making it easy to parse quickly.

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

Completeness2/5

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

Given no annotations, no output schema, and a simple input schema, the description is incomplete. It lacks details on behavioral traits, return values, and usage context, which are necessary for the agent to effectively invoke this tool without trial and error.

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?

The input schema has 100% description coverage, so parameters 'channelId' and 'maxResults' are well-documented in the schema. The description adds no additional meaning beyond implying retrieval from a channel, which the schema already covers, meeting the baseline for high schema coverage.

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

Purpose4/5

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

The description clearly states the verb 'Get' and resource 'videos from a specific channel', making the purpose understandable. However, it doesn't differentiate from sibling tools like 'videos_getVideo' or 'videos_searchVideos', which also retrieve videos but with different scopes or filters, so it's not fully specific.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention siblings like 'videos_searchVideos' for broader searches or 'channels_getChannel' for channel metadata, leaving the agent to infer usage from context alone.

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

Related 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/ZubeidHendricks/youtube-mcp-server'

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