Skip to main content
Glama

fetchYoutube

Retrieve all YouTube videos from the Goose channel to monitor and track content updates across sessions for content management purposes.

Instructions

Fetch ALL YouTube videos from the Goose channel.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that fetches all YouTube videos from the specified Goose channel using RSS parser and maps them to ContentItem objects.
    async function fetchYoutube(): Promise<ContentItem[]> { const feed = await rssParser.parseURL( `https://www.youtube.com/feeds/videos.xml?channel_id=${YOUTUBE_CHANNEL_ID}` ); return feed.items.map((item) => ({ id: item.id || item.link || "", title: item.title || "", url: item.link || "", published_at: item.pubDate || "", type: "video" as const, })); }
  • src/server.ts:133-138 (registration)
    Registers the 'fetchYoutube' tool with FastMCP server, using empty Zod schema for parameters and execute handler that stringifies the result.
    server.addTool({ name: "fetchYoutube", description: "Fetch ALL YouTube videos from the Goose channel.", parameters: z.object({}), execute: async () => JSON.stringify(await fetchYoutube()), });
  • Type definition for ContentItem used as return type for fetchYoutube, defining the structure of fetched content.
    interface ContentItem { id: string; title: string; url: string; published_at: string; type: "video" | "blog" | "release"; }
  • Zod input schema for the tool, which takes no parameters.
    parameters: z.object({}),

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/EbonyLouis/content-fetcher-mcp2'

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