Search Contacts
search_contactsSearches the contacts of the signed-in Mailpro account inside ONE contact list, ONE tag or ONE segment: give exactly one of list_id, tag_id, segment_id. Optionally filter by email address (lists and tags only). Returns email, phone, rating and the filled-in custom fields. To look in several lists, call it once per list. The result is one page: for the total number of contacts, use get_contact_list (list), list_tags (tag) or count_segment_contacts (segment). Contact data is personal data: return only what the user asked for.
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 |
|---|---|---|---|
| page | No | Page number, starting at 1. | |
| No | Optional: only contacts whose email address contains this text. Leave empty for all. Not available for segments. | ||
| tag_id | No | Tag id, from list_tags. 0 when searching by list or segment. | |
| list_id | No | List id, from list_contact_lists. 0 when searching by tag or segment. | |
| page_size | No | Contacts per page, 1 to 50. Default 20. | |
| segment_id | No | Segment id, from list_segments. 0 when searching by list or tag. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| contacts | Yes | ||
| has_more | Yes | True when a next page may exist. | |
| page_size | Yes |