Skip to main content
Glama
crunchtools

mcp-cloudflare-crunchtools

by crunchtools

Create Page Rule Tool

create_page_rule_tool

Create a Cloudflare page rule by defining URL pattern targets and actions for a zone, with optional priority and active status. Use it to control caching, redirects, and security settings per URL.

Instructions

Create a new page rule.

Input Schema

NameRequiredDescriptionDefault
statusNoactive or disabled (default: active)active
actionsYesPage rule actions
targetsYesURL pattern targets
zone_idYesZone ID (32-character hex string)
priorityNoRule priority 1-1000 (default: 1)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.7.2
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / actions / description
      Added value: +"Page rule actions"
    • addedInput schema / properties / priority / description
      Added value: +"Rule priority 1-1000 (default: 1)"
    • addedInput schema / properties / status / description
      Added value: +"active or disabled (default: active)"
    • addedInput schema / properties / targets / description
      Added value: +"URL pattern targets"
    • addedInput schema / properties / zone_id / description
      Added value: +"Zone ID (32-character hex string)"
  2. Changed6 schema fields changedv0.5.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / actions / description
      Removed value: -"Page rule actions"
    • removedInput schema / properties / priority / description
      Removed value: -"Rule priority 1-1000 (default: 1)"
    • removedInput schema / properties / status / description
      Removed value: -"active or disabled (default: active)"
    • removedInput schema / properties / targets / description
      Removed value: -"URL pattern targets"
    • removedInput schema / properties / zone_id / description
      Removed value: -"Zone ID (32-character hex string)"
  3. First observedv0.5.0

TDQS

C2.1/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, yet it discloses nothing about permissions required, whether creation is idempotent, how the mandatory targets/actions arrays are interpreted, or whether the rule takes effect immediately. Only the bare fact that it is a write operation is conveyed by the verb.

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

Conciseness2/5

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

One short sentence with zero waste, but this is under-specification rather than conciseness — brevity here costs the agent all routing and behavioral information. A single sentence is not appropriate for a five-parameter mutation tool.

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

Completeness1/5

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

For a mutation tool with five parameters, no annotations, and two free-form object-array parameters whose semantics are entirely unstated, the description leaves the agent unable to construct a correct call. The existing output schema excuses explaining return values, but nothing else is covered.

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

Parameters3/5

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

Schema description coverage is 100%, so zone_id, targets, actions, priority and status are already documented in the schema. The description adds no format details, no examples of target/action object shapes, and no interaction between priority and ordering. Baseline 3 applies when the schema does the heavy lifting.

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

Purpose2/5

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

"Create a new page rule" only restates the tool name and title — a bare verb+resource with no scope, no mention of zone binding, and no distinction from update_page_rule_tool or list_page_rules_tool. An agent learns nothing it couldn't infer from the identifier itself.

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?

There is no when-to-use guidance and no reference to the obvious alternatives (update_page_rule_tool, list_page_rules_tool, delete_page_rule_tool). The agent must infer that this is the creation path purely from the name.

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