Skip to main content
Glama
crunchtools

mcp-cloudflare-crunchtools

by crunchtools

delete_waf_rule_tool

Delete a Cloudflare WAF custom rule by providing its rule ID and either zone ID or zone name. Returns deletion confirmation.

Instructions

Delete a WAF custom rule.

Provide either zone_id or zone_name, not both.

Args: rule_id: Rule ID (32-character hex string) zone_id: Zone ID (32-character hex string) zone_name: Zone name (domain like example.com)

Returns: Deletion confirmation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rule_idYes
zone_idNo
zone_nameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.5.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / rule_id / description
      Removed value: -"Rule ID (32-character hex string)"
    • removedInput schema / properties / zone_id / description
      Removed value: -"Zone ID (32-character hex string)"
    • removedInput schema / properties / zone_name / description
      Removed value: -"Zone name (domain like example.com)"
  2. First observedv0.5.0

TDQS

B3.3/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. It discloses only a terse "Deletion confirmation" return and stays silent on whether the deletion is permanent/irreversible, what permissions or authorization are needed, and whether the rule stops enforcing traffic immediately. For a destructive operation with zero annotation coverage this is a significant gap.

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?

Front-loaded with the one-line purpose, then the exclusivity constraint, then Args and Returns blocks. Each section is short and earns its place; the Args/Returns scaffolding is slightly formulaic but not wasteful.

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 explaining return values is not required, yet the description still notes "Deletion confirmation" (harmless). The main deficiency is behavioral: for a destructive, annotation-free tool the description should at minimum signal permanence or required permissions. Parameter and identity handling are otherwise adequately covered.

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%, so the description must compensate, and it largely does: rule_id and zone_id are described as 32-character hex strings and zone_name as a domain like example.com, plus the mutual-exclusivity rule between zone_id and zone_name. It omits whether zone_id/zone_name are optional when a rule_id uniquely resolves, but the formats are genuinely additive.

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?

States a specific verb+resource ("Delete a WAF custom rule") that clearly distinguishes it from the delete_page_rule_tool/delete_dns_record_tool siblings and from its WAF counterparts create_waf_rule_tool/update_waf_rule_tool/list_waf_rules_tool. It does not name an alternative sibling explicitly, but the WAF-rule scope is unambiguous.

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?

The line "Provide either zone_id or zone_name, not both" is a genuine invocation constraint the agent needs. However, there is no guidance on when to reach for this tool versus list_waf_rules_tool or update_waf_rule_tool, nor any preconditions. Usage is implied by the destroy verb rather than explained.

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