Skip to main content
Glama
dvvincent

VergeOS MCP Server

by dvvincent

tenant_action

Control tenant power states in VergeOS by performing actions like power on, power off, reset, or isolation toggles using tenant ID.

Instructions

Perform an action on a tenant (poweron, poweroff, reset)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesTenant ID
actionYesAction to perform

Implementation Reference

  • Core handler function in VergeOSAPI class that executes the tenant_action by proxying a POST request to the /api/v4/tenant_actions endpoint with the tenant ID and action payload.
    async tenantAction(id, action) {
      return this.request("/api/v4/tenant_actions", {
        method: "POST",
        headers: { "Content-Type": "application/json" },
        body: JSON.stringify({ tenant: id, action }),
      });
    }
  • src/index.js:431-449 (registration)
    Tool registration in the TOOLS array, defining the name, description, and input schema for tenant_action, used in list_tools response.
    {
      name: "tenant_action",
      description: "Perform an action on a tenant (poweron, poweroff, reset)",
      inputSchema: {
        type: "object",
        properties: {
          id: {
            type: "number",
            description: "Tenant ID",
          },
          action: {
            type: "string",
            enum: ["poweron", "poweroff", "reset", "isolateon", "isolateoff"],
            description: "Action to perform",
          },
        },
        required: ["id", "action"],
      },
    },
  • Dispatch handler in the MCP call_tool request handler that invokes the tenantAction method with parsed arguments.
    case "tenant_action":
      result = await api.tenantAction(args.id, args.action);
      break;
  • The dispatch case in the tool execution switch statement.
    case "tenant_action":
      result = await api.tenantAction(args.id, args.action);
      break;

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