Create Access Policy Tool
create_access_policy_toolAdds a policy to a Cloudflare Access application by specifying include, exclude, or require rules and an allow, deny, bypass, or non_identity decision.
Instructions
Add a policy to an Access application.
Each rule is an object with exactly one key: {"email": "user@example.com"}, {"email_domain": "example.com"}, {"ip": "203.0.113.0/24"} or {"everyone": true}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"zone_id": "<zone_id>",
"app_id": "<app_id>",
"name": "<name>",
"decision": "<decision>",
"include": "<include>"
},
"name": "create_access_policy_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Policy name | |
| app_id | Yes | Application ID (UUID) | |
| exclude | No | Rules of which a visitor must match none (optional) | |
| include | Yes | Rules of which a visitor must match at least one | |
| require | No | Rules of which a visitor must match all (optional) | |
| zone_id | Yes | Zone ID (32-character hex string) | |
| decision | Yes | allow, deny, bypass (no login at all) or non_identity |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||