Skip to main content
Glama
jedarden

YouTube Transcript DL MCP Server

by jedarden

clear_cache

Remove stored transcript data from the cache to free up resources or resolve inconsistencies in the YouTube Transcript DL MCP Server.

Instructions

Clear the transcript cache

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'clear_cache' MCP tool. It calls the transcript service's clearCache method and returns a success message in the required MCP format.
    private async handleClearCache() { this.transcriptService.clearCache(); return { content: [{ type: 'text', text: 'Cache cleared successfully' }] }; }
  • Registration of the 'clear_cache' tool in the getAvailableTools() method, including its name, description, and empty input schema.
    { name: 'clear_cache', description: 'Clear the transcript cache', inputSchema: { type: 'object', properties: {} } },
  • Input schema for the 'clear_cache' tool, which requires no parameters (empty object).
    inputSchema: { type: 'object', properties: {} }
  • Helper method in YouTubeTranscriptService that performs the actual cache clearing by calling flush() on the internal Cache instance.
    public clearCache(): void { this.cache.flush(); }

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

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