Home / Servers / Cloudflare API / magic_static_routes_create_routes
Create a Route
An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.
Create a Route Creates a new Magic static route. Use ?validate_only=true as an optional query parameter to run… [POST /accounts/{account_id}/magic/routes]
Name on the gateway: cloudflare_api__magic_static_routes_create_routes · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
account_id required | string | account_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_create_routes",
"arguments": {
"account_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 create a route tool with account_id set to ….