Skip to main content
Glama

create_egress_firewall_rule

Creates an egress firewall rule for a CloudStack network using protocol, CIDR list, and optional start/end ports to control outbound traffic.

Instructions

Create an egress firewall rule for a network

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": {
      "networkid": "<networkid>",
      "protocol": "<protocol>"
    },
    "name": "create_egress_firewall_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
endportNoEnd port
cidrlistNoCIDR list
protocolYesProtocol (tcp, udp, icmp, all)
networkidYesNetwork ID
startportNoStart port

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden for a mutating tool, yet it discloses nothing about required permissions, whether the rule takes effect immediately, what happens on duplicate rules, or what is returned. Only the bare fact of creation is conveyed.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though the brevity borders on under-specification rather than disciplined concision.

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

Completeness2/5

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

For a five-parameter mutating tool with no annotations and no output schema, one sentence is not enough: nothing is said about defaults, validation, failure modes, or the created rule's identity. The agent has no basis beyond the schema to call this correctly in context.

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 coverage is 100%, so the baseline is 3; the schema already documents networkid, protocol, cidrlist and the port range. The description adds no meaning beyond it — notably it does not explain the startport/endport pairing, the meaning of an empty cidrlist, or that only networkid and protocol are required.

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 a specific verb and resource ("Create an egress firewall rule") and scopes it to a network, so an agent can tell it apart from the sibling create_firewall_rule by the 'egress' qualifier. It stops short of explicitly naming that sibling or contrasting directionality, so it is clear but not fully differentiated.

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 guidance on when to use this versus create_firewall_rule (ingress) or create_security_group_rule, and no mention of prerequisites such as the network needing to exist or which rule precedence applies. The agent must infer all selection logic from the tool name alone.

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