Skip to main content
Glama

create_port_forwarding_rule

Create a CloudStack port forwarding rule to map a public IP and port to a VM's private port, enabling external access to internal services.

Instructions

Create a port forwarding rule

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": {
      "ipaddressid": "<ipaddressid>",
      "privateport": "<privateport>",
      "publicport": "<publicport>",
      "protocol": "<protocol>",
      "virtualmachineid": "<virtualmachineid>"
    },
    "name": "create_port_forwarding_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
protocolYesProtocol (tcp, udp)
publicportYesPublic port
ipaddressidYesPublic IP address ID
privateportYesPrivate port on the VM
publicendportNoPublic end port (for port range)
privateendportNoPrivate end port (for port range)
virtualmachineidYesVM ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

D1.9/5.0
Behavior1/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 and discloses nothing. It does not state that this is a write/mutating operation, whether the rule takes effect immediately, whether ports must be free or the IP unassigned, or what happens on port conflicts.

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

Conciseness2/5

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

The single sentence is technically concise but is pure under-specification rather than efficient communication. Nothing is front-loaded because there is no content to front-load.

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

Completeness1/5

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

For a 7-parameter mutation tool with 5 required fields, no annotations, and no output schema, the description should explain the port-direction semantics, range behavior, and required resource state. None of that is present.

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%, so every parameter including the optional range endpoints and the tcp/udp enum is documented in the schema itself. The description adds no meaning beyond that, but the baseline of 3 applies when the schema does the work.

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

Purpose2/5

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

The description reads "Create a port forwarding rule," which is a verbatim restatement of the tool name and adds no distinguishing detail. It does not say what a port forwarding rule is scoped to (VM, public IP, port pair) or how it differs from sibling create_* rule tools such as create_firewall_rule or create_load_balancer_rule.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives. The agent is left to guess whether a firewall or security group rule is required alongside it, or how it relates to list_port_forwarding_rules and delete_port_forwarding_rule.

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

Deploy Server

Other Tools