Skip to main content
Glama
crunchtools

mcp-cloudflare-crunchtools

by crunchtools

list_waf_rules_tool

List all WAF custom rules for a Cloudflare zone by zone ID or name, returning each rule's expression, action, and status to review firewall protections.

Instructions

List all WAF custom rules for a zone.

Provide either zone_id or zone_name, not both.

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

Returns: List of WAF rules with their expressions, actions, and status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
zone_idNo
zone_nameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.5.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • 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

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It discloses the read-only nature ("List"), the zone-scoping, the parameter exclusivity rule, and the shape of the returned data (expressions, actions, status). It says nothing about pagination, permissions, or rate limits, which are the remaining gaps for a list operation.

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?

The purpose is front-loaded in the first line before the Args/Returns details, and the whole thing is short. The Args block partially restates the schema's property names, which is mild redundancy, but it adds value since the schema has no descriptions.

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?

For a two-parameter read tool with an output schema present, the description covers purpose, parameter semantics, and mutual exclusivity adequately. The only left-open items are error behavior when both/neither zone argument is given and whether results are paginated.

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 0%, so the description must compensate, and it largely does: it documents both parameters with concrete format hints (32-character hex ID, domain like example.com) and states that they are mutually exclusive. It stops short of saying what happens if both or neither are provided.

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?

States a specific verb ("List"), a specific resource ("WAF custom rules"), and the scope ("for a zone"). The resource is narrow enough to separate it from the other list_* siblings (page rules, header rules, DNS records) without ambiguity.

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?

It gives a real usage constraint — "Provide either zone_id or zone_name, not both" — but never says when to prefer this tool over alternatives or when listing is the wrong operation. Usage is implied rather than explicitly guided.

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