Add or edit a customer
save_customerCreate or edit a customer (client/contact) in an organization, as the CRM form in the app does. Without customer_id this creates one: name is required. With customer_id (from list_customers) it edits that customer: pass just the fields to change — omitted fields are untouched, an explicit empty string clears a text field, a blank name is rejected, and it errors if no field is given. Requires CRM-manager access. Returns the customer; verify edits with list_customers. With decision_maker_id (from list_leads source=business_directory) it saves a directory lead instead: it unlocks that person's work email — only an email at the business's own domain from a confident match, and a found email uses one of the organization's monthly unlocks (Team: 100; not_found and repeat unlocks are free) — then creates a customer for the business with that email, its website, and a note naming the person and their title; name and notes override the defaults. Returns {decision_maker, unlocks, customer}; 403 PLAN_LIMIT_REACHED when the month's unlocks are used. Team plan and above. Confirmation-gated only when decision_maker_id is set. A plain customer create or edit applies on the first call, including an edit that overwrites or clears a field; no customer save emails anyone.
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": "save_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | customer name; required when creating, never blank | |
| No | contact email | ||
| notes | No | notes about the customer | |
| phone | No | contact phone number | |
| status | No | org's status label for this customer | |
| address | No | free-form address object | |
| website | No | customer website url | |
| customer_id | No | edit this customer (from list_customers); omit to create one | |
| idempotency_key | No | creating only: a key you generate (a UUID works) and send with this create. Send the same key to retry the same create after a timeout or lost reply: the server returns the record that call created, read as it is now with your current access, and does not create or notify a second time. If that first call failed with an error that may have left the record created, the key stays blocked (409 IDEMPOTENCY_OUTCOME_UNKNOWN): check whether the record exists before creating it with a new key. Kept for 24 hours per organization, user and tool; reusing a key with different arguments is refused (409 IDEMPOTENCY_KEY_REUSED). Omit it and a repeated call creates a repeat. | |
| organization_id | No | organization to act in, an id from get_me; omit to use your active organization | |
| decision_maker_id | No | save a directory decision maker (from list_leads source=business_directory) as a new customer | |
| confirmation_token | No | only when decision_maker_id is set: leave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true on success (including confirmation_required prompts) | |
| data | No | when the tool asks first: { status: "confirmation_required", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the API response { status (HTTP status), data: { address, contact_count, email, event_ids, external_identities [{ external_id, external_url, provider, provider_object }], id, linked_events_count, name, next_event { event_date, event_status, id, location, location_name, title, venue_id, venue_name }, notes, phone, primary_contact { email, id, is_primary, name, phone, portal_access, title }, recent_events [{ event_date, event_status, id, location, location_name, title, venue_id, venue_name }], source_summary [{ count, provider, provider_object }], status, venues [{ address, id, name, notes, status }], website } } | |
| error | No | when ok is false |