Skip to main content
Glama

Get ready to contact the dealer (nothing is sent)

lead_prepare

Use 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

NameRequiredDescriptionDefault
vinYesThe 17-character VIN of the car.
channelsNoHow the shopper agreed to be contacted.
commentsNoA 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?"
customerNoThe shopper's own details.
quote_idNoFrom `quote_out_the_door`, if there was one.
buyer_zipNoThe shopper's ZIP. Routes to the nearest store.
rooftop_slugNoWhich store, when more than one has the car.

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
freshnessNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations it discloses that nothing is sent yet, that `ticket` expires in fifteen minutes, the three-leads-per-day cap, the `already_sent` shortcut within 24 hours, and the failure modes (`not_found`, `quote_unavailable`, `rate_limited`). It also flags that app-level tool approval does not count as shopper consent, which is behavioral context no annotation carries.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded correctly (when to use, then state, then outcomes) and every section is substantive, but it is dense and repeats itself: `quote_unavailable` is explained twice and the relevant `already_sent` shape is restated at the end after being described earlier.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a state-creating tool with consent gating, rate limits, and multi-store routing, the description covers the preconditions, the ticket lifecycle, the consent wording fallback for stores without their own, and the exception paths. An output schema exists, yet the return fields called out are the ones that change how the agent should act next.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, but the description still adds meaning: `channels` is what the shopper agreed to and the dealer is never offered more, `rooftop_slug`/`buyer_zip` decide routing when a car sits at multiple stores, `quote_id` records the figure the shopper saw, and `comments` is capped at 500 characters in the shopper's own words.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening states a specific verb and resource (prepare to have the dealer contact the shopper about one car) with concrete examples (check availability, book a test drive, buy). It explicitly contrasts with lookups and with the sibling `lead_submit`, so an agent can place it without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit when ('the shopper asks to be contacted'), an explicit when-not ('do not use it to look up a car or a price, or before the shopper has asked to be contacted'), and names the next step, `lead_submit`, plus the precondition that the shopper must have seen the exact `disclosure_text` and replied agreeing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources