preview_automation_filter
Counts the leads of the last days (days, default 7, at most 90) that match a saved filter, before you use it in an automation.
Preview an automation filter · Read-only
Counts the leads of the last days (days, default 7, at most 90) that match a saved filter, before you use it in an automation. Answers total7d (all leads in the window) and matched7d (leads the filter lets through) — both cover windowDays despite the names — plus up to 8 samples (name, domain, industry, employees, country, score) and the top 4 industries with their share among the first 50 matching leads. Takes a few seconds. 404 when the filter does not exist. Free.
| Connection | Account URL, team member URL or OAuth |
|---|
Parameters
| Parameter | Type | Required | Accepts | Description |
|---|---|---|---|---|
websiteId | string | Yes | any | Website ID from list_websites. |
filterId | string | Yes | any | Saved filter ID from list_filters. |
days | number | No | 1–90 | How many days back (1-90). |
Tool definition
What your assistant receives from tools/list:
{
"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"
]
}
}test_webhook
Sends a sample lead, as automations send them, to a URL so you can check your endpoint receives and parses it.
get_automation_stats
Last 7 days (UTC) for every automation of a website, keyed by automation id, each with its name and isActive: runs7d (leads it ran on), delivered7d (sent), failed7d (failed attempts), failedLeads7d (leads whose latest attempt still failed; retries that worked drop out), lastRunAt (last run within 90 days) and series (one row per day).