Home / Servers / Cloudflare API / api_shield_operations_post_labels_to_operation
Attach labels to a web or API operation
An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.
Attach labels to a web or API operation Attaches one or more labels to a web or API operation. [POST /zones/{zone_id}/api_gateway/operations/{operation_id}/labels]
Name on the gateway: cloudflare_api__api_shield_operations_post_labels_to_operation · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
zone_id required | string | zone_id parameter |
operation_id required | string | operation_id parameter |
managed | array | List of managed label names. |
user | array | List of user label names. |
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__api_shield_operations_post_labels_to_operation",
"arguments": {
"zone_id": "…",
"operation_id": "…"
}
}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 attach labels to a web or api operation tool with zone_id set to ….