Skip to main content
Glama

manage_port_forwarding

Add, update, or delete NAT port forwarding rules on VMware host networks, mapping host TCP/UDP ports to guest IP addresses and ports.

Instructions

Add/update or delete a NAT port forwarding rule on a VMware host network (e.g. vmnet8).

Args: network: Host network name (e.g. 'vmnet8'). action: 'set' to add/update, 'delete' to remove. protocol: 'tcp' or 'udp'. host_port: Host TCP/UDP port number (1-65535). guest_ip: Guest IP address (required when action='set'). guest_port: Guest port number 1-65535 (required when action='set'). description: Optional rule description (only for action='set').

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": {
      "network": "<network>",
      "action": "<action>",
      "protocol": "<protocol>",
      "host_port": "<host_port>"
    },
    "name": "manage_port_forwarding"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
networkYes
guest_ipNo
protocolYes
host_portYes
guest_portNo
descriptionNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It never states what happens to the non-required params during action='delete', whether 'set' overwrites an existing rule with the same host_port/protocol, whether elevated permissions are needed, or when the rule takes effect — all material for a mutating network-configuration tool.

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?

One summary sentence followed by a compact per-argument list — well front-loaded and easy to scan. The args block is somewhat duplicative of the schema but earns its place given the 0% schema coverage.

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

Completeness3/5

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

An output schema exists, so return values need not be described, and parameters are fully covered. What's missing is behavioral context appropriate to an unannotated mutation tool: overwrite semantics, delete-mode parameter handling, permissions, and how a valid network name is obtained.

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

Parameters4/5

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

Schema description coverage is 0% and the description compensates well: it glosses all seven parameters, states that guest_ip/guest_port are required only for action='set', that description applies only to 'set', and gives the 1-65535 host_port/guest_port ranges. The enum values (tcp/udp, set/delete) are simply repeated from the schema, which is the only redundant part.

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 opens with a specific verb+resource pair: add/update or delete a NAT port forwarding rule on a VMware host network (e.g. vmnet8). That is concrete and unambiguous, and it implicitly separates the tool from siblings like list_host_networks or manage_shared_folder, though it never names an alternative.

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 explains the internal branch: action='set' to add/update and 'delete' to remove, plus which params are required when action='set'. It gives no guidance on prerequisites (e.g. discovering a valid network name via list_host_networks) or when this tool is the right choice versus other host-network tools.

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