rematch_emails
Assign still UNASSIGNED mails (incoming and sent via send_email) to the records that match their counterpart address. Scope: contact_id (all addresses of that person: main e-mail + additional e-mails), account_id (the organisation's e-mail) or since (ISO date: every unassigned mail since then). Exactly one match → assigned (assignment_state 'auto'); a person, their lead and their organisation count as ONE match. Several different matches → nothing is assigned, the candidates are stored (assignment_state 'ambiguous') for a human to pick with assign_email. Mails whose assignment a human removed are left alone. Runs automatically after create_contact, update_contact (new e-mail) and upsert_contact_point (kind email). Optional: dry_run=true only reports. Max 500 mails per call (more → call again).
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": "rematch_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | ISO date/time | |
| dry_run | No | Only simulate and report what would happen; change nothing | |
| account_id | No | ID of the account (company) | |
| contact_id | No | ID of the contact |