Set inbox spend policy
cooper_set_spend_policyUse this to read or set per-inbox send limits. Requires auth. Inputs: inbox_id (omit when this key is limited to one inbox) and optional max_sends_per_day, domain_allow, domain_block, approval_keywords, and approval_amount_cents. Omit every limit field to read the current policy. Returns {object:"spend_policy", inbox_id, max_sends_per_day, domain_allow, domain_block, approval_keywords, approval_amount_cents, updated_at, enabled}. A send past max_sends_per_day is HTTP 429 send_limit_exceeded. A blocked domain is HTTP 403 recipient_domain_blocked. A domain outside a non-empty allow list is HTTP 403 recipient_domain_denied. A keyword or an amount at or above approval_amount_cents stages an owner-approval draft instead of sending, and that needs a verified owner. Null clears a numeric limit. COOPER_SPEND_LIMITS=off disables enforcement. The default is on. Same as GET and PUT /api/v1/inboxes/{id}/spend-policy.
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_spend_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inbox_id | No | Inbox id (inb_…), username, or email. Omit it when this key is limited to one inbox. | |
| domain_allow | No | Recipient domains that may receive mail. Empty means every domain that is not blocked. | |
| domain_block | No | Recipient domains that cannot receive mail. | |
| approval_keywords | No | Case-insensitive substrings that hold the message for owner approval. | |
| max_sends_per_day | No | Maximum outbound messages per UTC day. Null clears the cap. Integer from 1 to 10000. | |
| approval_amount_cents | No | Amounts in the message at or above this many cents are held for owner approval. Null clears it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object | No | spend_policy. | |
| enabled | No | False when COOPER_SPEND_LIMITS is off. | |
| inbox_id | No | Inbox id this policy belongs to. | |
| updated_at | No | ISO-8601 time the policy was saved, or null when it is still the default. | |
| domain_allow | No | Recipient domains that may receive mail. Empty means no allow list. | |
| domain_block | No | Recipient domains that cannot receive mail. | |
| approval_keywords | No | Substrings that hold the message for owner approval. | |
| max_sends_per_day | No | Maximum outbound messages per UTC day, or null when unset. | |
| approval_amount_cents | No | Amounts at or above this many cents are held for owner approval, or null. |