Skip to main content
Glama

create_dfw_rule

Create distributed firewall rules in VMware NSX to control network traffic between sources, destinations, and services with configurable actions and logging.

Instructions

Create a DFW rule under the specified policy.

Args: policy_id: Parent policy identifier. rule_id: Unique rule identifier within the policy. display_name: Human-readable rule name. action: Firewall action — ALLOW, DROP, REJECT, or JUMP_TO_APPLICATION (default: ALLOW). sources: List of source group paths. Use ['ANY'] for any source (default: ANY). destinations: List of destination group paths. Use ['ANY'] for any destination (default: ANY). services: List of service paths. Use ['ANY'] for all services (default: ANY). scope: List of scope paths (groups/segments) limiting where the rule is applied. direction: Traffic direction — IN, OUT, or IN_OUT (default: IN_OUT). ip_protocol: IP version — IPV4, IPV6, or IPV4_IPV6 (default: IPV4_IPV6). logged: Log matched traffic (default: False). disabled: Create the rule in disabled state (default: False). sequence_number: Rule priority within the policy (default: 10). description: Optional description. target: Optional NSX Manager target name from config.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
policy_idYes
rule_idYes
display_nameYes
actionNoALLOW
sourcesNo
destinationsNo
servicesNo
scopeNo
directionNoIN_OUT
ip_protocolNoIPV4_IPV6
loggedNo
disabledNo
sequence_numberNo
descriptionNo
targetNo
Behavior3/5

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

No annotations provided, so description carries full burden. Documents parameter defaults and valid values (e.g., ALLOW/DROP/REJECT/JUMP_TO_APPLICATION), but omits operation-level behaviors: idempotency on duplicate rule_id, transaction atomicity, side effects, or required permissions.

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?

Uses structured Args format that efficiently packs 15 parameter descriptions without redundancy. Length is necessarily extensive given parameter count and zero schema coverage, but every line adds value; purpose statement is front-loaded.

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?

Comprehensive coverage of all 15 input parameters with defaults and valid values. Minor gap: does not mention prerequisite that policy_id must reference an existing policy, or explain the absence of output schema (though not required given rules).

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

Parameters5/5

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

Schema has 0% description coverage (only titles/types). The Args block comprehensively documents all 15 parameters, adding critical semantics like ['ANY'] syntax for sources/destinations and NSX Manager context for the target parameter, fully compensating for the schema's lack of descriptions.

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

Purpose5/5

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

Opens with specific verb 'Create' and resource 'DFW rule', plus qualifying context 'under the specified policy' that clearly distinguishes this from sibling tools like create_dfw_policy, update_dfw_rule, or delete_dfw_rule.

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?

Implies usage through the verb 'Create' and notes rule_id must be unique within the policy, but lacks explicit when-to-use guidance (e.g., distinguishing from update_dfw_rule for existing rules) or prerequisite statements (e.g., policy must exist).

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

Install Server

Other Tools

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/zw008/VMware-NSX-Security'

If you have feedback or need assistance with the MCP directory API, please join our Discord server