Check whether a send is allowed
mail_validate_sendA dry run of mail_send: says whether this message would be sent, held for approval, or refused, and why (blocked or unlisted recipients, daily cap, account policy). Nothing is sent. Use it before sending to people outside the user's domain or when unsure of the rules. Example: { "account_id": "acc_…", "to": [{ "email": "ana@contoso.example.com" }], "subject": "Hi", "body": { "content": "…" } }.
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": {
"to": "<to>",
"subject": "<subject>",
"body": "<body>"
},
"name": "mail_validate_send"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Copied recipients. | |
| to | Yes | Recipients, as `{ email, name? }`. | |
| bcc | No | Blind-copied recipients. | |
| body | Yes | The message body. Markdown is converted to HTML for the recipient. | |
| subject | Yes | The subject line. | |
| account_id | No | The account to act on (`acc_…` from accounts_list). Required when more than one account could do this; otherwise the error lists the candidates. | |
| attachments | No | Files to attach: each an `upload_token`, or `filename` + `mime_type` + `content_base64` (inline, at most 3 MB in all). For a file on your own disk, use an upload token from attachments_generate_upload_link, which you can fill yourself over HTTP. All files together must fit the account's own limit, e.g. 25 MB for Gmail, 35 MB by default for Microsoft 365. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outcome | Yes | ||
| reasons | Yes | ||
| account_id | Yes |