PlatformDocs
MCP server

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.

View as Markdown

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.

ConnectionAccount URL, team member URL or OAuth

Parameters

ParameterTypeRequiredAcceptsDescription
websiteIdstringYesanyWebsite ID from list_websites.
filterIdstringYesanySaved filter ID from list_filters.
daysnumberNo1–90How 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"
    ]
  }
}

On this page