Home / Servers / Cloudflare API / device_posture_rules_create_device_posture_rule
Create posture rule
An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.
Create posture rule Creates a new device posture rule. [POST /accounts/{account_id}/devices/posture]
Name on the gateway: cloudflare_api__device_posture_rules_create_device_posture_rule · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
account_id required | string | account_id parameter |
description | string | The description of the device posture rule. |
expiration | string | Sets the expiration time for a posture check… |
input | object | The value to be checked against. |
match | array | The conditions that the client must match to run… |
name required | string | The name of the device posture rule. |
schedule | string | Polling frequency for the WARP client posture… |
type required | string | The type of device posture rule. |
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__device_posture_rules_create_device_posture_rule",
"arguments": {
"account_id": "…",
"name": "…",
"type": "…"
}
}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 posture rule tool with account_id set to ….