# unmark_email_account_spam (/docs/mcp/tools/unmark-email-account-spam)

{/* Generated by scripts/sync-mcp-tools.mjs from happierleads-api. Do not edit: change src/routes/mcp/toolDocs.json there, or add content/mcp-notes/unmark_email_account_spam.mdx. */}

**Clear a mailbox spam flag** · Changes data

Clears the flag set when a mailbox looked like it was going to spam, so it sends again. Fix the cause first (warmup, content, DNS) with get_warmup_health.

| Connection | Account URL, team member URL or OAuth |
| --- | --- |

## Parameters [#parameters]

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `websiteId` | `string` | Yes | Website ID from list_websites. |
| `emailAccountId` | `string` | Yes | Mailbox ID from list_email_accounts. |

## Tool definition [#tool-definition]

What your assistant receives from `tools/list`:

```json
{
  "name": "unmark_email_account_spam",
  "title": "Clear a mailbox spam flag",
  "annotations": {
    "title": "Clear a mailbox spam flag",
    "readOnlyHint": false,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": false
  },
  "inputSchema": {
    "type": "object",
    "properties": {
      "websiteId": {
        "type": "string",
        "description": "Website ID from list_websites."
      },
      "emailAccountId": {
        "type": "string",
        "description": "Mailbox ID from list_email_accounts."
      }
    },
    "required": [
      "websiteId",
      "emailAccountId"
    ]
  }
}
```
