Flip a policy from audit to enforcing
flip_to_enforcingPromotes a MagicSword policy from audit to enforcing mode through the Portal server confirmation flow. First call without confirmation_token to get readiness, blockers, endpoint count, and a one-time token. Show the preview to the human.
Instructions
Promotes a MagicSword policy from audit to enforcing mode through the Portal server confirmation flow. First call without confirmation_token to get readiness, blockers, endpoint count, and a one-time token. Show the preview to the human. Second call with confirmation_token to commit. Requires policies:write. This is two-step API confirmation, not MFA: the same API key can perform both calls. Human approval must be obtained by the MCP host.
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": {
"policy_id": "<policy_id>"
},
"name": "flip_to_enforcing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy_id | Yes | Policy UUID to flip | |
| confirmation_token | No | Token returned by the preview call. Passing this commits enforcement. | |
| acknowledge_blockers | No | Set true only when the human explicitly accepts preview blockers. Used on the preview call. |