Skip to main content
Glama

Préparer un rachat de métaux

prepare_metal_buyback
Read-onlyIdempotent

Préparer une demande de rachat de métaux ou de ferraille (cuivre, aluminium, acier…), avec enlèvement ou envoi. 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>",
      "metal_state": "<metal_state>",
      "start_address": "<start_address>"
    },
    "name": "prepare_metal_buyback"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesNom du client.
emailNo
phoneYesTéléphone du client, pour l’offre et le rappel.
metalsNoComposition déclarée, par exemple « cuivre 20 kg, aluminium 50 kg ».
messageNoPrécisions du client. Ne rien inventer.
weight_kgNoPoids total estimé en kilogrammes, si connu.
metal_stateYestrie (par métal), melange, avec_impuretes, vehicule_complet (à dépolluer) ou autre.
customer_typeNoparticulier ou professionnel.
start_addressYesAdresse complète des métaux : rue, code postal et ville.
collection_methodNoenlevement à l’adresse ou envoi_postal.

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

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the description only needs to add context and it does: 'Aucun dossier créé, aucun message envoyé' confirms no side effects, and the 30-minute token expiry plus the explicit no-price-promise set correct expectations about the outcome. What it omits is what the agent should do with the token afterwards, which is real behavioral guidance for a multi-step flow.

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?

Four short sentences, purpose front-loaded, and each sentence contributes something distinct (scope, return value + token, pricing caveat, absence of side effects). Slightly verbose wording in the price sentence ('n'est estimé ni promis : l'équipe InterCar étudie la demande et fait son offre') but no filler.

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?

An output schema exists and annotations cover the safety profile, so the description is not obligated to explain return values, yet it usefully notes the récapitulatif and the 30-minute token. For a 10-parameter intake tool the coverage is adequate, with the notable gap being that the description never says this is a preparatory step whose token feeds a later submission.

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?

With 90% schema description coverage and three enum parameters already documented inline, the schema carries the parameter burden. The description restates the metal examples and the enlèvement/envoi choice, which the schema already contains, and adds no new meaning such as required-vs-optional emphasis, validation rules, or how weight_kg interacts with the metals text field.

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 gives a specific verb and resource: 'Préparer une demande de rachat de métaux ou de ferraille', and narrows the scope with concrete materials (cuivre, aluminium, acier) plus the two collection modes. It is clearly distinguishable from adjacent siblings like prepare_wreck_removal or prepare_equipment_buyback, but it never explicitly names prepare_buyback_request or another alternative, leaving the agent to infer the boundary itself.

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 rather than stated: the reader infers this is the tool for a metal/scrap buyback intake with pickup or postal shipment. There is no explicit when-to-use or when-not statement and no pointer to what to call next (e.g. submit_request) or to a sibling for a different material category.

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