Skip to main content
Glama

Chiffrer une intervention

estimate_intervention
Read-onlyIdempotent

Chiffrer un remorquage, un dépannage, un convoyage, une batterie, un pneu ou une ouverture de porte avec le moteur InterCar, sans rien enregistrer. Transport d’un véhicule : remorquage (plateau express ou transport groupé économique, proposés en formules) ou convoyage (un chauffeur conduit le véhicule roulant) ; end_address obligatoire pour ces deux services. Prix selon le gabarit (vehicle_type), l’état, l’accès, la distance et l’heure de prise en charge. Réponse en euros : price (= price_ttc) est le prix TTC, TVA comprise, à annoncer tel quel à un particulier (aucune TVA à ajouter) ; price_ht (HT) et vat (TVA 20 %) en sont déduits, au centime pour les véhicules légers ; détail ligne à ligne en HT ; chaque formule a ses propres montants. booking indique si le prix est réservable en ligne (bookable_online), les formules (pricing_mode, prix, acompte, solde sur place) et les conditions. Réservable : annoncer le prix, puis proposer de réserver maintenant avec book_intervention (lien de paiement de l’acompte), ou d’être rappelé (request_callback). Non réservable : proposer request_callback.

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": {
      "service_type": "<service_type>",
      "start_address": "<start_address>",
      "vehicle_type": "<vehicle_type>",
      "vehicle_states": "<vehicle_states>",
      "access_location": "<access_location>"
    },
    "name": "estimate_intervention"
  }
}

Input Schema

NameRequiredDescriptionDefault
electricNotrue pour un véhicule électrique ou hybride rechargeable, si le client le précise.
tire_tpmsNoChangement : true si le véhicule a des capteurs de pression (TPMS).
tire_countNoChangement : nombre de pneus à poser (obligatoire pour changement).
distance_kmNoDistance routière vérifiée par un outil cartographique ou fournie par le client, si connue. Ne pas inventer ni utiliser une distance à vol d’oiseau. Le chiffrage reste indicatif.
end_addressNoObligatoire pour un remorquage ou un convoyage ; inutile pour une intervention sur place.
tire_optionNoObligatoire pour pneu : reparation (crevaison réparée sur place) ou changement (pneus neufs posés).
tire_supplyNoChangement : intercar (pneu fourni et posé) ou client (pose seule d’un pneu déjà acheté).
mission_dateNoDate ISO 8601 avec fuseau horaire ; omettre pour une intervention immédiate.
service_typeYesremorquage : véhicule transporté de A à B (plateau express ou transport groupé économique) ; depannage : panne, intervention sur place ; convoyage : un chauffeur conduit le véhicule roulant de A à B ; batterie : batterie à plat (redémarrage) ou batterie neuve posée ; pneu : crevaison réparée ou pneus neufs posés sur place ; serrurier : ouverture de porte (clés enfermées ou perdues).
tire_qualityNoChangement : gamme entree, milieu ou premium ; le chiffrage renvoie le prix des trois gammes (tire_options).
vehicle_typeYesGabarit : identify_vehicle le déduit de la plaque. poids-lourd : prix confirmé par l’équipe (rappel).
start_addressYesAdresse complète, code postal et ville du véhicule.
battery_optionNoObligatoire pour batterie : recharge_diagnostic (redémarrage et diagnostic), remplacement_standard (batterie neuve, garantie 2 ans) ou remplacement_start_stop (batterie Start & Stop AGM/EFB).
tire_dimensionNoDimension lue sur le flanc du pneu, ex. 205/55 R16. Sans elle, prix calculé sur une taille type, à confirmer.
vehicle_statesYesÉtats cumulables, tels que décrits par le client.
access_locationYesrue : voie publique ou garage accessible ; parking_souterrain ; chemin_terre : chemin ou terrain difficile.

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.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered; the description adds 'sans rien enregistrer', i.e. nothing is persisted, plus the pricing caveats (TTC vs HT, VAT 20%, cent-level rounding for light vehicles, each formula has its own amounts, poids-lourd prices confirmed by the team). Return-field detail (price, price_ht, vat, booking.bookable_online, pricing_mode, deposit, solde sur place) is somewhat redundant given an output schema exists.

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?

The purpose and the no-persistence constraint are front-loaded, and most sentences carry routing or pricing information an agent would otherwise have to infer. It is nonetheless a dense block with heavy parenthetical nesting and some repetition of enum values that the schema already defines.

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 16-parameter, seven-enum tool this covers the hard parts: which service needs end_address, how the price is composed, what the response currency and tax treatment are, and what to do next depending on bookable_online. With an output schema present, the description need not explain raw return values further.

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 coverage is 100%, so baseline is 3, but the description adds causal meaning: price depends on gabarit (vehicle_type), état, accès, distance and pickup hour, and it highlights end_address as required only for the two transport services. It does not restate the conditional battery/tire parameters, which the schema already documents well.

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 description opens with a specific verb and enumerates the exact resources (remorquage, dépannage, convoyage, batterie, pneu, serrurier) and states the defining constraint 'sans rien enregistrer', which separates it from the write-side siblings book_intervention and submit_request. An agent can tell immediately what it produces: a price quote, not a booking.

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

Usage Guidelines4/5

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

It gives concrete conditional routing: if the quote is bookable, announce the price then offer book_intervention (deposit payment link) or request_callback; if not bookable, offer request_callback only. It also states end_address is mandatory for remorquage/convoyage and useless for on-site work. It stops short of explicitly contrasting with prepare_request or identity tools, so no full when-not statement.

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