# preview_automation_filter (/docs/mcp/tools/preview-automation-filter)

{/* 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/preview_automation_filter.mdx. */}

**Preview an automation filter** · Read-only

Counts the leads of the last days that match a saved filter, and shows a few of them, before you use the filter in an automation. Free.

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

## Parameters [#parameters]

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `websiteId` | `string` | Yes | Website ID from list_websites. |
| `filterId` | `string` | Yes | Saved filter ID from list_filters. |
| `days` | `number` | No | How many days back (1-90). |

## Tool definition [#tool-definition]

What your assistant receives from `tools/list`:

```json
{
  "name": "preview_automation_filter",
  "title": "Preview an automation filter",
  "annotations": {
    "title": "Preview an automation filter",
    "readOnlyHint": true,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": false
  },
  "inputSchema": {
    "type": "object",
    "properties": {
      "websiteId": {
        "type": "string",
        "description": "Website ID from list_websites."
      },
      "filterId": {
        "type": "string",
        "description": "Saved filter ID from list_filters."
      },
      "days": {
        "type": "number",
        "minimum": 1,
        "maximum": 90,
        "description": "How many days back (1-90)."
      }
    },
    "required": [
      "websiteId",
      "filterId"
    ]
  }
}
```
