Search contacts
search_contactsSearches and paginates contacts in the authenticated inviomail tenant. invio is a short name for inviomail. Use this to list contacts by tag, combine include/exclude tag filters, filter by status, source or effective entry date, or search by email/name. Date filters prefer confirmation date, then entry date, then creation date, with inclusive UTC calendar days. Results are intentionally limited and paginated; use nextCursor as cursor for the next page and retain the same filters. To add or remove tags on matching contacts, use add_contact_tags or remove_contact_tags for each returned email.
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": "search_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional tag filter. includeAny matches at least one tag, includeAll requires every tag, and excludeAny removes matching contacts. | |
| limit | No | Maximum contacts to return | |
| query | No | Optional email or first-name search term | |
| cursor | No | Opaque nextCursor from the previous response | |
| entryTo | No | Inclusive end date (YYYY-MM-DD, UTC), using the same effective date as entryFrom. Set only this field to find older contacts. Must not precede entryFrom. | |
| sources | No | Optional contact sources to include | |
| statuses | No | Optional contact statuses to include | |
| entryFrom | No | Inclusive start date (YYYY-MM-DD, UTC) for confirmation date, falling back to entry date then creation date. Omit for no lower bound. | |
| customFieldFilters | No | Up to five AND conditions on registered custom fields; list_contact_fields returns valid keys |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contacts | Yes | ||
| requestId | Yes | ||
| pagination | Yes |