Skip to main content
Glama

get_prompt_stats

Retrieve statistics about available development prompts to analyze usage patterns and optimize AI-powered workflows.

Instructions

Get statistics about available prompts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler for the 'get_prompt_stats' tool: retrieves statistics from PromptManager and returns them 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), }, ], };
  • The getStats() method in PromptManager that computes and returns prompt statistics: total prompts, number of categories, and breakdown by category.
    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; }

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