toggle_csp
Enable or disable a contextual security policy to control whether it is applied. Set the desired enabled state, or omit it to invert the current state; verify is_active after concurrent calls.
Instructions
Enable or disable a contextual security policy. Inactive policies are not applied. Set enabled for the desired state; omitting it toggles the current state. Concurrent calls can race, so verify the returned is_active value.
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": {
"csp_id": "<csp_id>"
},
"name": "toggle_csp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csp_id | Yes | CSP policy UUID | |
| enabled | No | true = ativa; false = desativa. Omitir inverte o estado atual (repetir a chamada desfaz). |