Skip to main content
Glama

get_prompt_stats

Analyze and retrieve statistics for available prompts to optimize development workflows, supporting tasks like UI/UX design, project setup, and debugging.

Instructions

Get statistics about available prompts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for 'get_prompt_stats' in the CallToolRequestSchema. Delegates to PromptManager.getStats() and formats response as JSON text content.
    case "get_prompt_stats": const promptStats = this.promptManager.getStats(); logger.info("Retrieved prompt statistics"); return { content: [ { type: "text", text: JSON.stringify(promptStats, null, 2), }, ], };
  • Core implementation of prompt statistics calculation in PromptManager.getStats(), returning total prompts, category count, and breakdown.
    getStats(): PromptStats { const stats: PromptStats = { totalPrompts: this.prompts.size, categories: this.categories.size, categoryBreakdown: {}, }; for (const category of this.categories) { stats.categoryBreakdown[category] = Array.from( this.prompts.values() ).filter((prompt) => prompt.category === category).length; } return stats; }
  • TypeScript interface defining the output structure (PromptStats) for the get_prompt_stats tool.
    export interface PromptStats { totalPrompts: number; categories: number; categoryBreakdown: Record<string, number>; }

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/LeonNonnast/mcpdevprompts'

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