Skip to main content
Glama

network_management

Create, list, and remove VirtualBox host-only networks, and list or configure VM network adapters to control how virtual machines connect to NAT, bridged, or internal networks.

Instructions

Comprehensive network management portmanteau tool.

Consolidates all network operations into a single interface. Use the action parameter to specify which operation to perform.

Return Format

Dict with success (bool), human-readable message, the action performed, and operation data (networks, adapters, result). Failures carry a human-readable error.

Examples

await network_management(action="list_networks")
await network_management(action="create_network", network_name="MyNetwork", ip_address="192.168.56.1", netmask="255.255.255.0")
await network_management(action="list_adapters", vm_name="MyVM")
await network_management(action="configure_adapter", vm_name="MyVM", adapter_slot=0, network_type="hostonly", network_name="MyNetwork")
await network_management(action="remove_network", network_name="MyNetwork")

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "network_management"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax items for list actions.
actionYesNetwork operation to perform.
offsetNoOffset for list pagination.
netmaskNoNetmask (create_network, optional).
vm_nameNoVM name (list_adapters, configure_adapter).
ip_addressNoIP address (create_network, optional).
adapter_slotNoAdapter slot 0-3 (configure_adapter).
network_nameNoHost-only network name (create_network, remove_network, configure_adapter).
network_typeNoAttachment type (configure_adapter): nat, bridged, hostonly, internal, generic, natnetwork.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.0

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It does useful work by disclosing the return shape (`success`, `message`, `action`, data keys) and that failures carry an `error` string, but it never flags `remove_network` as a destructive/irreversible operation, nor says whether removal fails when VMs are attached, nor mentions any host-side preconditions for creating a host-only network.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening paragraph is front-loaded and the action-to-parameter mapping is immediately legible through the examples. Mild redundancy: the 'Return Format' section largely restates what the output schema already declares, and five examples is more than strictly necessary to convey the pattern.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter dispatcher with full schema coverage and an output schema, the definition supplies enough to call it correctly: the action vocabulary, an example per operation, and the response shape. It falls short of full completeness by omitting the destructive nature of `remove_network` and any lane-drawing against the sibling management tools.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and the schema already annotates which action consumes each parameter, so the baseline is 3. The examples add modest value by showing concrete shapes (`adapter_slot=0`, `network_type="hostonly"`, `ip_address`/`netmask` pairs), but the description does not clarify the action-specific required-parameter matrix or how the optional `ip_address`/`netmask` defaults are derived when omitted.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states it consolidates network operations into a single `action`-driven interface, and the examples enumerate the five concrete operations (list_networks, create_network, remove_network, list_adapters, configure_adapter). That is enough to separate it from siblings like vm_management or storage_management, though the framing leans on the jargon term 'portmanteau' instead of a plain statement of scope.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It tells the agent to select an operation via the `action` parameter and the examples implicitly show which companion parameters belong to each action, which is real invocation guidance. However, there is no explicit when-to-use/when-not guidance and no guidance on when a network task should go through this tool versus a sibling such as vm_management, so usage is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.