preview_segment
Preview an audience without saving or sending. Pass a saved segment ID or an inline definition to see contact count and sample for filter validation.
Instructions
Resolve an audience WITHOUT saving or sending anything: pass a saved segmentId OR an inline definition and get { count, sample: ≤10 contacts }. Use this to sanity-check a filter before attaching it to a campaign.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "preview_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sender | No | Product/sender externalId sent as X-Drin-Sender. Required only for account-wide API keys; overrides the server's default sender. | |
| segmentId | No | A saved segment to resolve. | |
| definition | No | An inline { match, conditions[] } filter to resolve instead. |