Preview Audience segment
preview_audience_segmentCount how many subscribers match a set of filters, without listing them. Columns: type (is, is_not, is_any_of); started_at (on, before, after); activity (gt, gte, lt, lte, is, is_not). Each column at most once; combine Type values with is_any_of. Returns the count and a plain-language rule. Never returns subscribers or emails. Workspace owner only, on a plan that includes agents.
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": {
"predicates": "<predicates>"
},
"name": "preview_audience_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | No | Optional authorized team workspace name or id. Absence selects the authenticated user’s personal account. Audience is for the workspace owner only. | |
| predicates | Yes | Filters, all of which must match. | |
| includeAuthor | No | Include the publication’s own author in the count. Defaults to false. | |
| publicationId | No | Optional connected Substack publication: its id, handle, URL, or name. Defaults to the default publication, or the only one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| lastSync | Yes | ||
| exclusions | Yes | ||
| completeness | Yes | ||
| predicateHash | Yes | ||
| publicationId | Yes | ||
| interpretedRule | Yes | ||
| connectedAccount | No |