Save materials to the price book
save_price_itemsAdd or update materials in the trade's price book, so later quotes can use { code, qty } and the cost, unit and markup fill in. Materials used in quotes are also remembered automatically.
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": {
"trade_key": "<trade_key>",
"price_items": "<price_items>"
},
"name": "save_price_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trade_key | Yes | The trade's secret key from setup_trade (starts qbk_). | |
| price_items | Yes | Materials the trade buys often, saved to their price book. Each: code (short id, optional), description, unit, unit_cost (pounds, what they pay), cost_includes_vat, markup_percent (optional, overrides the default). |