Compare quantities
comparer_quantitesUse this when the user wants to see how the unit price of the same part changes with quantity (2 to 8 quantities, e.g. 50, 500, 5000). Returns one costed line per quantity. Do not use for a single quantity (use chiffrer_piece). 1 credit per quantity.
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": {
"plan_id": "<plan_id>",
"matiere": "<matiere>",
"quantites": "<quantites>"
},
"name": "comparer_quantites"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | Renvoyer toutes les lignes pour chaque quantité | |
| matiere | Yes | Ex. aluminium, acier, inox, fonte, pa6 | |
| plan_id | Yes | Identifiant rendu par POST /plans | |
| quantites | Yes | ||
| ajustements | No | Paramètres du modèle (voir ajustements_possibles dans la réponse) | |
| epaisseur_mm | No | Pour la tôle si le plan ne la porte pas | |
| nb_campagnes | No | ||
| lot_de_fabrication | No | Nombre de pièces par lot, ou « commande_entiere » |