Create Access App Tool
create_access_app_toolProtect a hostname by placing it behind Cloudflare Access login. New applications start with no policy and deny access until a policy is added.
Instructions
Put a hostname behind a Cloudflare Access login.
A new application has no policy and admits no one until create_access_policy adds one.
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>",
"name": "<name>",
"domain": "<domain>"
},
"name": "create_access_app_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name | |
| domain | Yes | Hostname to protect, optionally with a path. No scheme. | |
| zone_id | Yes | Zone ID (32-character hex string) | |
| session_duration | No | How long a login lasts, such as 24h or 720h (default: 24h) | 24h |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||