Skip to main content
Glama

Contact the dealer

lead_submit
DestructiveIdempotent

Use this to send the shopper's request to the dealer once they have agreed to the consent wording, with the ticket from lead_prepare. It reaches a real dealership. Do not use it without a ticket from lead_prepare.

It sends a real lead. It is refused with consent_required unless disclosure_text is exactly the text lead_prepare returned, customer is the same shopper, and shopper_consented is true, because CarEdge must be able to show that this shopper agreed to these words. Agreement is the shopper's own reply in a later turn, after seeing the text: a clear yes, or their details. Approving a tool call in the app is not agreement.

When lead_prepare returned an empty disclosure_text, disclosure_text may be left out, and shopper_consented: true is still needed: the shopper's yes to being contacted by the store.

channels may be left out, and then the dealer is asked to use exactly the channels chosen at lead_prepare. It may name fewer, never more.

A ticket makes one lead. The exact same call sent again answers with the same lead_id and the lead's current status, and nothing is sent twice. A different request on a ticket already used answers ticket_used. After fifteen minutes the ticket answers ticket_expired, and a new lead_prepare, with the consent wording shown again, is needed.

One shopper and one car make one lead a day. When this shopper's lead for this car was already sent in the last 24 hours, the answer is that lead, with its own lead_id and accepted_at, and already_sent: true: the request is already with the dealer and nothing new reaches the store. Something the shopper gave after that lead, such as a trade-in, goes in a new lead whose comments say what is new, with adds_to set to the earlier lead_id; it reaches the store as its own lead. trade_in holds the shopper's own car, and the dealer's CRM files it as the trade-in vehicle.

Each store takes at most 25 leads a day from AI assistants. Past that the answer is rate_limited, and the store can still be called directly.

comments is a short note of what the shopper wants the dealer to know, at most 500 characters.

status: "accepted" means the lead is CarEdge's and safe. The email to the dealer's CRM goes out straight afterwards and is retried on its own if it fails, so a delivery problem is never the shopper's to solve.

A dealer with a dealer-<id> slug never gets a ticket, because lead_prepare answers quote_unavailable for its cars, so no request can reach it.

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": {
      "ticket": "<ticket>"
    },
    "name": "lead_submit"
  }
}

Input Schema

NameRequiredDescriptionDefault
ticketYesThe ticket from `lead_prepare`.
adds_toNoThe earlier `lead_id` for this shopper and car this one adds to.
channelsNoFewer than at prepare, never more. Omit to keep them all.
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 same shopper `lead_prepare` was called with.
trade_inNoThe shopper's own car, if they offered one.
disclosure_textNoThe exact words the shopper was shown.
shopper_consentedNoTrue only once the shopper has said yes.

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?

Annotations declare it is a non-read, open-world, idempotent and destructive operation; the description then supplies far more than that, including the exact refusal codes (`consent_required`, `ticket_used`, `ticket_expired`, `rate_limited`), the 15-minute ticket lifetime, the 24-hour per-shopper/per-car dedupe with `already_sent`, and the 25-leads-per-store-per-day cap. It also clarifies that idempotency returns the same `lead_id` and current `status` rather than resending, which is directly useful given the destructive hint.

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?

Front-loaded with the usage rule and the ticket dependency, then ordered by failure mode, which is easy to scan. It is long, and a few lines repeat themselves or duplicate the schema: 'It sends a real lead' restates 'It reaches a real dealership', and the `comments` sentence mirrors its schema description almost verbatim.

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 an 8-parameter mutation tool with an output schema, the description covers prerequisites, consent semantics, idempotency, dedupe, expiry, and rate limits without needing to explain return shapes. No gap an agent would need in order to call it correctly remains.

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%, so 3 is the baseline, but the description adds real meaning: `disclosure_text` must match exactly what `lead_prepare` returned, `channels` may name fewer but never more, `adds_to` routes a follow-up as its own lead, and `shopper_consented` is the shopper's own later-turn reply, not app-level tool approval. That last point is a genuinely non-obvious constraint the schema cannot express.

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?

States a specific verb and resource: send the shopper's request to the dealer, using a `ticket` from `lead_prepare`. It distinguishes itself from the sibling explicitly, noting that `lead_prepare` must come first and what happens if it doesn't.

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?

Gives clear when-to-use (after the shopper agrees to the consent wording, with a ticket), when-not-to-use (never without a ticket), and alternatives: call the store directly when rate-limited, run a new `lead_prepare` when the ticket expires. Nothing is left to inference.

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