Skip to main content
Glama

Préparer une demande de rachat de véhicule

prepare_buyback_request
Read-onlyIdempotent

Préparer une demande d’offre de rachat d’une voiture, d’un utilitaire ou d’une moto, roulant, en panne ou accidenté. Retourne un récapitulatif, le véhicule identifié par la plaque quand c’est possible, et un jeton valable 30 minutes. Aucun prix n’est estimé ni promis : l’équipe InterCar étudie la demande et fait son offre au client après transmission. Aucun dossier créé, aucun message envoyé.

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": {
      "name": "<name>",
      "phone": "<phone>",
      "license_plate": "<license_plate>",
      "condition": "<condition>",
      "start_address": "<start_address>"
    },
    "name": "prepare_buyback_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesNom du client.
emailNo
phoneYesTéléphone du client, pour l’offre et le rappel.
messageNoPrécisions du client : dégâts, entretien, options, disponibilité. Ne rien inventer.
conditionYesroulant : démarre et roule ; panne : ne démarre pas ; accidente ; panne_accidente ; autre : préciser dans message. Pour une épave hors d’usage, utiliser prepare_wreck_removal.
mileage_kmNoKilométrage au compteur, si le client le connaît.
desired_priceNoPrix souhaité par le client en euros, s’il en indique un. Ne pas en proposer.
license_plateYesImmatriculation du véhicule à racheter.
start_addressYesAdresse complète où se trouve le véhicule : rue, code postal et ville.
vehicle_categoryNovoiture par défaut ; utilitaire ; moto pour un deux-roues.

Output Schema

NameRequiredDescriptionDefault
errorNoCode d’erreur : validation_failed, price_changed, not_bookable_online, invalid_token…
quoteNoChiffrage du moteur InterCar : price = prix TTC à annoncer tel quel.
stateNoawaiting_consent, awaiting_payment, already_booked, received, already_received…
detailNoExplication à reformuler pour le client.
statusYestrue si l’appel a abouti ; false avec error, detail et next_step sinon.
bookingNoRéservabilité et formules (chiffrage), ou état de la réservation (paiement, suivi).
next_stepNoCe que l’agent doit faire ensuite.
referenceNoRéférence du dossier InterCar.
payment_urlNoLien Stripe de l’acompte : le client l’ouvre et paie lui-même.
request_tokenNoJeton privé de suivi : ne pas publier ni placer dans une URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint, idempotentHint, openWorldHint), the description discloses meaningful behavior: it returns a récapitulatif, a plate-based vehicle identification 'quand c'est possible', and a token valid 30 minutes. It also explicitly disclaims side effects and expectations ('aucun prix estimé ni promis', 'aucun dossier créé, aucun message envoyé'), which is exactly the context an agent needs and is consistent with readOnlyHint=true and destructiveHint=false.

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

Conciseness5/5

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

Four short sentences, front-loaded with purpose then return shape then behavioral limits; there is no filler or repetition. Each sentence carries distinct information: scope, outputs, token lifetime, and the no-price/no-record guarantees.

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 10-parameter intake tool with a full output schema and strong annotations, the description covers the remaining gaps: what is returned, how long the token lasts, and what the tool deliberately does not do. Return values need not be enumerated further because an output schema exists.

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

Parameters4/5

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

Schema description coverage is 90%, so the baseline is 3 and the schema already documents the ten fields. The description still adds meaning that bears on parameters: the plate is used to identify the vehicle ('identifié par la plaque quand c'est possible'), which explains why license_plate is required, and 'aucun prix n'est estimé ni promis' frames desired_price as client-supplied only, never proposed by the agent.

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

Purpose4/5

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

The description states a specific verb and resource ('Préparer une demande d'offre de rachat') and bounds the resource precisely: voiture, utilitaire, moto, in roulant/panne/accidenté state. It is immediately clear what the tool produces (a preparation, not a firm offer). It stops short of naming a sibling in the description body – the exclusion of épaves lives only in the schema text for 'condition' – so it is clear but not sibling-differentiating on its own.

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

Usage Guidelines3/5

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

Usage is implied by the scope sentence (vehicles being sold to InterCar) and reinforced by negative boundaries ('Aucun prix n'est estimé… aucun dossier créé, aucun message envoyé'), which tell the agent this is not a submission or an estimate. However, the description never says when to prefer a sibling, such as prepare_wreck_removal for a wreck or submit_request afterwards; that routing only appears inside the schema's 'condition' field.

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