get_all_usage_stats
Retrieve comprehensive usage statistics for all sessions on the Healthcare MCP Server to monitor and analyze tool engagement effectively.
Instructions
Get overall usage statistics for all sessions
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server/usage-service.js:43-52 (handler)The core handler function getAllUsageStats() that executes the tool logic, returning overall usage statistics including session start time, total tool calls, and per-tool usage counts.
getAllUsageStats() { return { status: 'success', overall_stats: { session_start: this.usageStats.session_start, total_calls: this.usageStats.total_calls, tool_usage: { ...this.usageStats.tool_usage } } }; } - server/index.js:264-270 (registration)Registers the get_all_usage_stats tool in the MCP server's ListTools response, including its name, description, and input schema (empty object since no parameters required).
name: "get_all_usage_stats", description: "Get overall usage statistics for all sessions", inputSchema: { type: "object", properties: {}, }, }, - server/index.js:326-328 (handler)Dispatch logic in the MCP CallTool request handler that routes execution of get_all_usage_stats to the usageService.getAllUsageStats() method.
case "get_all_usage_stats": result = usageService.getAllUsageStats(); break; - server/http-server.js:69-70 (handler)Dispatch logic in the HTTP server's handleCallTool function that routes get_all_usage_stats calls to usageService.getAllUsageStats().
case 'get_all_usage_stats': return usageService.getAllUsageStats();