list_tenants
Retrieve a list of all tenants in the VergeOS virtualization platform to manage tenant administration and monitor cluster resources.
Instructions
List all tenants in VergeOS
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:155-157 (handler)The core handler function in the VergeOSAPI class that implements the list_tenants tool by making an API request to fetch tenants from VergeOS.async listTenants() { return this.request("/api/v4/tenants?fields=most"); }
- src/index.js:409-416 (schema)The tool schema definition for list_tenants, including name, description, and empty input schema (no parameters required). Used for tool listing and validation.{ name: "list_tenants", description: "List all tenants in VergeOS", inputSchema: { type: "object", properties: {}, }, },
- src/index.js:576-577 (registration)The dispatch/registration in the CallToolRequestSchema handler where list_tenants tool calls are routed to the api.listTenants() implementation.case "list_tenants": result = await api.listTenants();
- src/http-server.js:151-153 (handler)Identical handler implementation in the HTTP server variant of the MCP server.async listTenants() { return this.request("/api/v4/tenants?fields=most"); }
- src/mcp-http-server.js:471-471 (handler)Handler in the advanced MCP HTTP+SSE server variant.async listTenants() { return this.request("/api/v4/tenants?fields=most"); }