Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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 } } }; }
  • 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: {}, }, },
  • 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;
  • 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();

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/Cicatriiz/healthcare-mcp-public'

If you have feedback or need assistance with the MCP directory API, please join our Discord server