Set inbound firewall policy
cooper_set_firewall_policyUse this to read or set how Cooper labels inbound mail for prompt injection, credential requests, suspicious links, lookalike domains, and hidden HTML. Requires auth. Inputs: inbox_id (omit when this key is limited to one inbox), policy (optional; off, label, or quarantine). Omit policy to read the current setting. Returns {object:"firewall_policy", inbox_id, policy, enabled, quarantine_at, labels}. label is the default and attaches safety.labels and safety.firewall without holding the body. quarantine holds mail whose firewall score is 60 or higher (labels suspicious, held, and quarantine) until cooper_release_message. off skips the firewall. An unknown policy is HTTP 400 invalid_firewall_policy. The check is a heuristic, not a guarantee, and the body stays untrusted data. Same as GET or PATCH /api/v1/inboxes/{id} with firewall_policy, and GET /api/v1/inboxes/{id}/firewall.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cooper_set_firewall_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | No | off skips the firewall. label attaches labels and a score. quarantine holds high-risk mail. Omit to read the current policy. | |
| inbox_id | No | Inbox id (inb_…), username, or email. Omit it when this key is limited to one inbox. Another inbox is 404 inbox_not_found. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blog | No | https URL of the firewall guide. | |
| labels | No | Label names the firewall can attach: agent_instruction, credential_request, suspicious_link, lookalike_domain, hidden_content. | |
| object | No | firewall_policy. | |
| policy | No | off, label, or quarantine. | |
| enabled | No | False when COOPER_INBOUND_FIREWALL is off. | |
| inbox_id | No | Inbox id this policy belongs to. | |
| quarantine_at | No | Firewall score that quarantine holds. 60. |