Skip to main content
Glama
jedarden

YouTube Transcript DL MCP Server

by jedarden

clear_cache

Remove stored YouTube transcript data to free storage space and ensure fresh transcript retrieval for the YouTube Transcript DL MCP Server.

Instructions

Clear the transcript cache

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Primary handler function for the 'clear_cache' MCP tool. Delegates cache clearing to the YouTubeTranscriptService and returns a standardized success response.
    private async handleClearCache() { this.transcriptService.clearCache(); return { content: [{ type: 'text', text: 'Cache cleared successfully' }] }; }
  • Core implementation that actually clears the transcript cache by flushing the internal Cache instance.
    public clearCache(): void { this.cache.flush(); }
  • Tool registration in the list of available tools, including schema definition (no input parameters required).
    { name: 'clear_cache', description: 'Clear the transcript cache', inputSchema: { type: 'object', properties: {} } },

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/jedarden/yt-transcript-dl-mcp'

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