Home / Servers / Cloudflare API / email_routing_routing_rules_update_routing_rule
Update routing rule
An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.
Update routing rule Update actions and matches, or enable/disable specific routing rules. Forward actions require… [PUT /zones/{zone_id}/email/routing/rules/{rule_identifier}]
Name on the gateway: cloudflare_api__email_routing_routing_rules_update_routing_rule · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
zone_id required | string | zone_id parameter |
rule_identifier required | string | rule_identifier parameter |
actions required | array | List actions patterns. |
enabled | boolean | Routing rule status. |
matchers required | array | Matching patterns to forward to your actions. |
name | string | Routing rule name. |
owner_worker_tag | string | Public tag (script_tag) of the Worker that owns… |
priority | number | Priority of the routing rule. |
source | api | wrangler | Who manages the rule. api covers dashboard… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "cloudflare_api__email_routing_routing_rules_update_routing_rule",
"arguments": {
"zone_id": "…",
"rule_identifier": "…",
"actions": [],
"matchers": []
}
}Or connect the Cloudflare API server directly, which lists 3,127 tools including this one:
claude mcp add --transport http hj-cloudflare-api https://mcp.hjlabs.in/mcp/cloudflare-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the update routing rule tool with zone_id set to ….