Skip to main content
Glama
jedarden

YouTube Transcript DL MCP Server

by jedarden

get_cache_stats

Retrieve cache statistics and performance metrics to monitor and optimize the YouTube Transcript DL MCP Server’s transcript retrieval efficiency.

Instructions

Get cache statistics and performance metrics

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The primary handler function for the 'get_cache_stats' tool. It calls the transcript service to get cache stats and formats the response as MCP content.
    private async handleGetCacheStats() { const stats = this.transcriptService.getCacheStats(); return { content: [{ type: 'text', text: JSON.stringify(stats, null, 2) }] }; }
  • Tool registration in the listAvailableTools method, defining the tool name, description, and input schema (empty object since no params required).
    { name: 'get_cache_stats', description: 'Get cache statistics and performance metrics', inputSchema: { type: 'object', properties: {} } },
  • Input schema definition for the get_cache_stats tool, specifying an empty object since the tool takes no parameters.
    inputSchema: { type: 'object', properties: {} }
  • Supporting method in the transcript service that delegates to the cache instance's getStats() method to retrieve statistics.
    public getCacheStats() { return this.cache.getStats();

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