Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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), }, ], };
  • TypeScript interface defining the output structure of tool statistics returned by get_tool_stats.
    export interface ToolsStats { totalTools: number; }
  • 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; }

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