Skip to main content
Glama
dvvincent

VergeOS MCP Server

by dvvincent

get_node_stats

Retrieve performance metrics and operational statistics for a specific node in the VergeOS virtualization platform to monitor cluster health and resource utilization.

Instructions

Get statistics for a specific node

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesNode ID

Implementation Reference

  • Core handler function in VergeOSAPI class that executes the HTTP request to the VergeOS backend API to fetch statistics for the specified node ID.
    async getNodeStats(id) {
      return this.request(`/api/v4/node_stats?node=${id}`);
    }
  • Tool schema definition in the TOOLS array, specifying the input schema requiring a numeric node ID.
    {
      name: "get_node_stats",
      description: "Get statistics for a specific node",
      inputSchema: {
        type: "object",
        properties: {
          id: {
            type: "number",
            description: "Node ID",
          },
        },
        required: ["id"],
      },
    },
  • Dispatch handler in the MCP CallToolRequestSchema request handler that routes the tool call to the api.getNodeStats method.
    case "get_node_stats":
      result = await api.getNodeStats(args.id);
      break;
  • src/index.js:526-528 (registration)
    Registration of the ListToolsRequestSchema handler which returns the TOOLS array including the get_node_stats tool definition.
    server.setRequestHandler(ListToolsRequestSchema, async () => {
      return { tools: 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/dvvincent/vergeos-mcp-server'

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