get_tool_stats
Retrieve usage statistics for available tools on the Dev MCP Prompt Server to monitor and optimize AI-powered development workflows efficiently.
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. 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-types.ts:8-10 (schema)TypeScript interface defining the output structure of tool statistics returned by get_tool_stats.export interface ToolsStats { totalTools: number; }
- src/tool-manager.ts:103-109 (helper)Core implementation of tool statistics computation in ToolManager class, returning the total number of loaded tools.getStats(): ToolsStats { const stats: ToolsStats = { totalTools: this.tools.size, }; return stats; }