Skip to main content
Glama

get_network

Retrieve detailed network configuration and status information from VergeOS virtualization platforms by specifying the network ID.

Instructions

Get detailed information about a specific network

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesNetwork ID

Implementation Reference

  • The core handler implementation for the 'get_network' tool. This method in the VergeOSAPI class makes an HTTP GET request to the VergeOS API endpoint to fetch detailed information about a specific virtual network by its ID.
    async getNetwork(id) { return this.request(`/api/v4/vnets/${id}?fields=most`); }
  • src/index.js:374-386 (registration)
    Registration of the 'get_network' tool in the TOOLS array, including name, description, and inputSchema specifying that a numeric 'id' is required.
    name: "get_network", description: "Get detailed information about a specific network", inputSchema: { type: "object", properties: { id: { type: "number", description: "Network ID", }, }, required: ["id"], }, },
  • Alternative direct handler for 'get_network' in the local proxy, performing the same API request.
    async function getNetwork(id) { return apiRequest(`/api/v4/vnets/${id}?fields=most`); }
  • Tool registration entry for 'get_network' in the local-proxy TOOLS array.
    { name: "get_network", description: "Get network details", inputSchema: { type: "object", properties: { id: { type: "number" } }, required: ["id"] } },
  • Dispatch logic in the tool call handler switch statement that invokes the getNetwork handler.
    case "get_network": result = await api.getNetwork(args.id); 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