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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:210-221 (handler)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), }, ], };
- src/tool-manager.ts:103-109 (helper)Core implementation of tool statistics computation, returning the total number of loaded tools.getStats(): ToolsStats { const stats: ToolsStats = { totalTools: this.tools.size, }; return stats; }
- src/tool-types.ts:8-10 (schema)TypeScript interface defining the structure of tool statistics (output schema).export interface ToolsStats { totalTools: number; }