Skip to main content
Glama

Préparer un rachat d’engin ou de matériel

prepare_equipment_buyback
Read-onlyIdempotent

Préparer une demande d’offre de rachat d’engin de chantier, de matériel agricole ou industriel, ou de poids lourd. Retourne un récapitulatif 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>",
      "equipment_type": "<equipment_type>",
      "condition": "<condition>",
      "start_address": "<start_address>"
    },
    "name": "prepare_equipment_buyback"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesNom du client.
emailNo
phoneYesTéléphone du client, pour l’offre et le rappel.
messageNoPrécisions : année, heures, équipements, nombre d’engins. Ne rien inventer.
conditionYesroulant, panne, accidente, hors_usage ou a_reviser.
brand_modelNoMarque et modèle, si connus.
license_plateNoImmatriculation, pour un poids lourd ou un engin immatriculé.
start_addressYesAdresse complète où se trouve le matériel : rue, code postal et ville.
weight_tonnesNoPoids en tonnes, si connu.
equipment_typeYesType de matériel ; lot_flotte pour plusieurs engins, autre à préciser dans message.

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/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive), the description discloses the return shape (a summary plus a 30-minute token), the crucial business constraint that no price is estimated or promised, and that no file is created and no message is sent. These are exactly the expectations an agent could otherwise get wrong for a tool named 'prepare'.

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 the purpose, then the return value, then the two caveats. Every sentence carries distinct information and nothing is repeated from the title or schema.

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

Completeness4/5

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

For a 10-parameter, human-in-the-loop intake tool with an output schema and rich annotations, the description covers scope, return token lifetime, and the no-commitment policy. The only gap is guidance on which sibling preparation tool applies to which case and what to do with the token afterwards.

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

Parameters3/5

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

Schema description coverage is 90%, so the schema already documents all ten parameters including the two enums. The description adds no parameter-level detail (e.g., when the token must be reused, or how lot_flotte should be handled), so it sits at the baseline for a well-documented schema.

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 opens with a specific verb+resource: preparing a buyback offer request for construction, agricultural/industrial equipment, or heavy trucks. It clearly delimits the equipment scope, though it never names a sibling (e.g., prepare_buyback_request or prepare_metal_buyback) to differentiate itself explicitly.

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 equipment categories listed, and the note that the team studies the request and makes the offer after transmission implies this is the intake step. However, there is no explicit 'use this instead of X when Y' guidance against the several similarly named sibling preparation tools.

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