get_cluster_stats
Retrieve storage tier statistics for VergeOS virtualization clusters to monitor capacity and performance across different storage levels.
Instructions
Get cluster tier statistics (storage tiers)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:185-187 (handler)The core handler function in VergeOSAPI class that executes the tool logic by requesting cluster tier stats from the VergeOS API endpoint /api/v4/cluster_tier_stats.async getClusterStats() { return this.request("/api/v4/cluster_tier_stats"); }
- src/index.js:483-489 (schema)The tool schema definition in the TOOLS array, specifying name, description, and empty input schema (no parameters required).name: "get_cluster_stats", description: "Get cluster tier statistics (storage tiers)", inputSchema: { type: "object", properties: {}, }, },
- src/index.js:596-598 (registration)The switch case in the MCP CallToolRequestHandler that registers and routes calls to the get_cluster_stats tool to the api.getClusterStats() handler.case "get_cluster_stats": result = await api.getClusterStats(); break;
- src/http-server.js:180-182 (handler)Identical handler implementation in the HTTP server variant's VergeOSAPI class.async getClusterStats() { return this.request("/api/v4/cluster_tier_stats"); }
- src/mcp-http-server.js:485-485 (handler)Handler in the MCP HTTP+SSE server's VergeOSAPI class, same API request logic.async getClusterStats() { return this.request("/api/v4/cluster_tier_stats"); }