Skip to main content
Glama

delete_dfw_rule

Destructive

Permanently delete a specific DFW rule from its parent security policy. Confirm the rule ID and check recent hits first, because removal is immediate and irreversible.

Instructions

[WRITE] Permanently delete one DFW rule from its parent security policy.

Returns {"status": "deleted", "message": ...}, else {"error", "hint"}. Irreversible and immediate: traffic it matched falls through to lower-priority rules or the policy default. Confirm rule_id with list_dfw_rules and check recent hits with get_dfw_rule_stats first; prefer update_dfw_rule with disabled=True when you may need the rule back. To remove a whole policy use delete_dfw_policy — it refuses while rules remain, whereas this tool has no such guard.

Args: policy_id: Parent policy id, from list_dfw_policies. rule_id: Rule id within that policy, from list_dfw_rules. target: Target name from config; default if omitted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNo
rule_idYes
policy_idYes
Behavior5/5

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

The description goes beyond the destructiveHint annotation by explaining the impact: 'Irreversible and immediate: traffic it matched falls through to lower-priority rules or the policy default.' It also discloses the lack of a guard against deleting a rule while the policy has rules, adding meaningful behavioral context.

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

Conciseness5/5

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

The description is well structured and front-loaded with its purpose. It includes return format, side effects, usage guidance, and parameter details without extraneous text. Every sentence adds value.

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

Completeness5/5

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

For a destructive tool with no output schema, the description is complete: it covers what the tool does, return values, irreversibility, consequences, alternatives, prerequisites, and parameter sources. Nothing critical is missing.

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 description coverage is 0%, but the description compensates fully with an Args section explaining each parameter: policy_id from list_dfw_policies, rule_id from list_dfw_rules, and target as an optional default. This is exactly what an agent needs to populate the parameters correctly.

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?

The description clearly states 'Permanently delete one DFW rule from its parent security policy.' It uses a specific verb (delete) and resource (DFW rule), and is clearly distinguished from sibling tools like delete_dfw_policy (whole policy) and update_dfw_rule (disable instead).

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

Usage Guidelines5/5

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

Explicit guidance is given: use update_dfw_rule with disabled=True when the rule may be needed back, and use delete_dfw_policy to remove a whole policy, noting that delete_dfw_policy refuses while rules remain whereas this tool does not. It also recommends confirming rule_id with list_dfw_rules and checking hits with get_dfw_rule_stats first.

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

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