Add or edit a lead
save_leadCreate a booking/staffing lead in an organization, or change one. Without lead_id this creates a lead: name, event_date, event_type, location, and source (WEBSITE|REFERRAL|INBOUND_EMAIL|PARTNER|REPEAT_CLIENT|INSTAGRAM|FACEBOOK|WEB_SEARCH|OTHER; staff-authored leads must state where they came from) are required; email is optional. When the client has only a month or year, pass event_date_precision MONTH or YEAR with any day in it; the date is stored as the first of the month or January 1. The created lead is returned. The returned lead carries stage (NEW, QUALIFIED, QUOTED, WON, LOST) as its readable position; its numeric status is a legacy field (1 pending, 2 completed) derived from stage. With lead_id it changes that lead as a partial merge: stage may be NEW, QUALIFIED, or QUOTED (use convert_lead to reach Won and mark_lead_lost to reach Lost), and null for event_id or customer_id unlinks. A Lost lead takes no other edit until it is reopened: pass lead_id, reopen=true and stage (NEW, QUALIFIED, or QUOTED) to bring it back into that stage; that call changes only the stage, and a converted (Won) lead cannot be reopened. Who is told: creating a lead emails the lead's own address (when it has one) a confirmation that the request was received and emails the organization a new-lead notice; editing or reopening a lead notifies nobody. Confirmation-gated only when creating; an edit or reopen runs on the first call. organization_id defaults to your active organization; pass it explicitly for a lead in another organization you belong to.
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_lead"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | contact name (required when creating) | |
| No | contact email | ||
| phone | No | contact phone number | |
| stage | No | when changing: NEW, QUALIFIED, or QUOTED | |
| budget | No | the budget the lead gave, kept as free text: an amount or a range (e.g. 5000); no currency is stored with it | |
| reopen | No | with lead_id and stage: bring a Lost lead back into that stage; no other field changes | |
| source | No | WEBSITE, REFERRAL, INBOUND_EMAIL, PARTNER, REPEAT_CLIENT, INSTAGRAM, FACEBOOK, WEB_SEARCH, or OTHER (required when creating) | |
| company | No | company or client name | |
| lead_id | No | change this lead; omit to create one | |
| message | No | what the lead wrote or said when they got in touch | |
| event_id | No | when changing: link this lead to an event; null clears the link | |
| location | No | where the client's event takes place: the venue name or city they gave, never a person's home or current location | |
| event_date | No | requested event date (YYYY-MM-DD or RFC3339; required when creating) | |
| event_type | No | event type (concert, wedding, corporate, festival, …; required when creating) | |
| customer_id | No | when changing: link this lead to a customer; null clears the link | |
| internal_notes | No | notes private to the org | |
| 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 | |
| confirmation_token | No | only when creating a lead: leave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token | |
| event_date_precision | No | how much of event_date is known; MONTH or YEAR when the client has no day yet |
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: { inquiry_date, referred_by, guest_count, budget, company, customer { email, id, name, phone }, customer_id, email, event_date, event_id, event_type, id, internal_notes, latitude, location, locked, longitude, lost_at, and 9 more fields } } | |
| error | No | when ok is false |