Get ready to contact the dealer (nothing is sent)
lead_prepareUse this when the shopper asks to be contacted by the dealer about one car, for example to check it is available, book a test drive or buy it, e.g. channels: ["email", "sms"]. Do not use it to look up a car or a price, or before the shopper has asked to be contacted.
Nothing is sent yet: this is step one, and lead_submit is step two. It needs the shopper's first name and at least one of an email address or a phone number; a last name is optional. channels is what the shopper agreed to be contacted on, and the dealer is never asked to use more than what is passed here.
It returns disclosure_text, the store's consent wording, or CarEdge's when the store has none, and a ticket that is good for fifteen minutes. The shopper has not agreed yet. lead_submit comes in a later turn, once the shopper has seen that exact text and replied agreeing to it (a clear yes, or their details), with the text unchanged and shopper_consented: true. Approving a tool call in the app is not agreement. An unused ticket expires by itself and creates no lead. An empty disclosure_text means no consent wording is set (consent_wording_note says so); the shopper's yes to being contacted by the store is still needed.
A store with no consent wording of its own (participating: true and disclosure_text: null in vehicle_get) takes CarEdge's wording, which covers email only: it accepts an email address and channels: ["email"], with no phone number.
rooftop_slug and buyer_zip decide which store receives the lead when the same car sits at more than one; routing_reason says which rule applied. quote_id from quote_out_the_door records on the lead the figure the shopper was actually shown.
A shopper may have three leads prepared a day. Past that, if this shopper's lead for this car was already sent in the last 24 hours, the answer is that lead, in lead_submit's shape with already_sent: true and no ticket: the request is already with the dealer and there is nothing to submit. Otherwise the answer is rate_limited.
comments is a short note of what the shopper wants the dealer to know, in their own words, such as a question about the car or a good time for a test drive, at most 500 characters. Something the shopper gives after a lead was sent, such as a trade-in, goes in a new lead that keeps every rule of a first lead and names the earlier lead_id in adds_to at lead_submit.
A car outside the stores this connector covers answers not_found. A car at a store CarEdge cannot send requests to answers quote_unavailable: that car can be described, but no request can be sent for it.
A car with a dealer-<id> slug answers quote_unavailable: CarEdge cannot send that dealer a request, nothing is saved or sent, and the message gives the car's caredge.com page and, when it can be resolved, the dealer's.
Fields: ticket works until expires_at. rooftop_name and distance_miles are the store the request goes to and its miles from the shopper's ZIP. When this request was already sent, the answer is that lead: already_sent true, with its status and accepted_at.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"vin": "<vin>"
},
"name": "lead_prepare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vin | Yes | The 17-character VIN of the car. | |
| channels | No | How the shopper agreed to be contacted. | |
| comments | No | A short note of what the shopper wants the dealer to know, in their own words, at most 500 characters, e.g. "Is it still available? Could I test drive it Saturday morning?" | |
| customer | No | The shopper's own details. | |
| quote_id | No | From `quote_out_the_door`, if there was one. | |
| buyer_zip | No | The shopper's ZIP. Routes to the nearest store. | |
| rooftop_slug | No | Which store, when more than one has the car. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| freshness | No |