okgate_set_policy
Replace a proxy's policy (YAML: mode, upstreams, classify, caps, loop, dry_run, approvals, alerts, chaos, drift). Validated before saving; takes effect within 30 seconds. Requires an account key.
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": {
"proxyId": "<proxyId>",
"policyYaml": "<policyYaml>"
},
"name": "okgate_set_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| proxyId | Yes | the proxy id returned by okgate_create_proxy | |
| policyYaml | Yes | the complete policy document; it replaces the current one rather than merging |