Home / Servers / Cloudflare API / magic_static_routes_update_route
Update Route
An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.
Update Route Update a specific Magic static route. Use ?validate_only=true as an optional query parameter to… [PUT /accounts/{account_id}/magic/routes/{route_id}]
Name on the gateway: cloudflare_api__magic_static_routes_update_route · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
account_id required | string | account_id parameter |
route_id required | string | route_id parameter |
description | string | An optional human provided description of the… |
nexthop required | string | The next-hop IP Address for the static route. |
prefix required | string | IP Prefix in Classless Inter-Domain Routing… |
priority required | integer | Priority of the static route. |
scope | object | Used only for ECMP routes. |
weight | integer | Optional weight of the ECMP scope - if provided. |
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__magic_static_routes_update_route",
"arguments": {
"account_id": "…",
"route_id": "…",
"nexthop": "…",
"prefix": "…",
"priority": 0
}
}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 route tool with account_id set to ….