Skip to main content
Glama
jedarden

YouTube Transcript DL MCP Server

by jedarden

get_cache_stats

Retrieve cache statistics and performance metrics for the YouTube transcript download server to monitor efficiency and track usage patterns.

Instructions

Get cache statistics and performance metrics

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'get_cache_stats' tool. It calls the transcript service to get cache statistics and returns them as a formatted JSON text response.
    private async handleGetCacheStats() { const stats = this.transcriptService.getCacheStats(); return { content: [{ type: 'text', text: JSON.stringify(stats, null, 2) }] }; }
  • Registration of the 'get_cache_stats' tool in the list of available tools, including its name, description, and empty input schema.
    { name: 'get_cache_stats', description: 'Get cache statistics and performance metrics', inputSchema: { type: 'object', properties: {} } },
  • Input schema definition for the 'get_cache_stats' tool, which requires no parameters.
    inputSchema: { type: 'object', properties: {} }
  • Helper method in YouTubeTranscriptService that retrieves cache statistics by delegating to the underlying Cache instance.
    public getCacheStats() { return this.cache.getStats(); }

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