Skip to main content
Glama

get_tool_stats

Retrieve usage statistics for development prompts to monitor tool performance and optimize AI-powered workflows.

Instructions

Get statistics about available tools

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler for the 'get_tool_stats' tool call. It invokes toolManager.getStats() and returns the statistics as JSON text content.
    case "get_tool_stats": const toolStats = this.toolManager.getStats(); logger.info("Retrieved tool statistics"); return { content: [ { type: "text", text: JSON.stringify(toolStats, null, 2), }, ], };
  • Core implementation of tool statistics computation, returning the total number of loaded tools.
    getStats(): ToolsStats { const stats: ToolsStats = { totalTools: this.tools.size, }; return stats; }
  • TypeScript interface defining the structure of tool statistics (output schema).
    export interface ToolsStats { totalTools: number; }

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