Skip to main content
Glama
crunchtools

mcp-cloudflare-crunchtools

by crunchtools

Update Waf Rule Tool

update_waf_rule_tool

Update an existing Cloudflare WAF custom rule by changing its action, filter expression, enabled state, or description.

Instructions

Update an existing WAF custom rule.

Provide either zone_id or zone_name, not both.

Input Schema

NameRequiredDescriptionDefault
actionNoNew action (optional)
enabledNoEnable or disable the rule (optional)
rule_idYesRule ID (32-character hex string)
zone_idNoZone ID (32-character hex string)
zone_nameNoZone name (domain like example.com)
expressionNoNew filter expression (optional)
descriptionNoNew description (optional)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.7.2
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / action / description
      Added value: +"New action (optional)"
    • addedInput schema / properties / description / description
      Added value: +"New description (optional)"
    • addedInput schema / properties / enabled / description
      Added value: +"Enable or disable the rule (optional)"
    • addedInput schema / properties / expression / description
      Added value: +"New filter expression (optional)"
    • addedInput schema / properties / rule_id / description
      Added value: +"Rule ID (32-character hex string)"
    • addedInput schema / properties / zone_id / description
      Added value: +"Zone ID (32-character hex string)"
    • addedInput schema / properties / zone_name / description
      Added value: +"Zone name (domain like example.com)"
  2. Changed8 schema fields changedv0.5.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / action / description
      Removed value: -"New action (optional)"
    • removedInput schema / properties / description / description
      Removed value: -"New description (optional)"
    • removedInput schema / properties / enabled / description
      Removed value: -"Enable or disable the rule (optional)"
    • removedInput schema / properties / expression / description
      Removed value: -"New filter expression (optional)"
    • 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)"
  3. First observedv0.5.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it delivers almost nothing beyond implying mutation. It does not disclose whether omitted optional fields (all default to null) preserve or clear existing values, whether the operation requires elevated permissions, or how a missing/unknown rule_id is handled.

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?

Two short sentences with the core operation front-loaded and the constraint immediately after. There is no filler, though the overall thinness reflects missing content rather than successful economy.

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 partial-update mutation tool with seven optional/defaulted parameters and no annotations, the description omits the most decision-relevant facts: null-vs-preserve semantics for unset fields, auth requirements, and failure behavior. The output schema covers return values, so that gap is excused, but the mutation semantics are not.

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 coverage is 100%, so the baseline is 3, but the description adds a genuinely new constraint the schema cannot express: zone_id and zone_name are mutually exclusive ('provide either... not both'), while both are merely nullable in the schema. That is real added meaning beyond the field descriptions.

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 (update) and resource (WAF custom rule) with the qualifier 'existing', which implicitly distinguishes it from create_waf_rule_tool and delete_waf_rule_tool. It does not name siblings explicitly, so the differentiation relies on the reader's inference rather than direct routing.

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?

The only guidance is the zone_id/zone_name mutual exclusion, which is a parameter constraint rather than usage context. It never says when to reach for this tool versus list_waf_rules_tool, create_waf_rule_tool, or delete_waf_rule_tool, nor what prerequisites (e.g., rule must already exist) apply.

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