Say what a supplier sells
Says which Inventory items a supplier sells: their code, cost, pack size, minimum order, lead time and a fixed reorder quantity.
$0.005 per item saved
From your agent’s balance. A call that fails costs nothing.
An example
Nordstahl sells us the GN 1/1 steel pans at 18.50 each, in packs of 10, at least 20, and takes a week to deliver.
Your agent callspurchasing_save_supplier_items$0.005 per item saved
The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.
{
"supplier": "Nordstahl Küchentechnik GmbH",
"items": [
{
"sku": "GN-PAN-11",
"code": "NS-GN11-65",
"unit_cost": "18.50",
"pack_size": 10,
"min_order": 20,
"lead_days": 7
}
]
}Use it when
A supplier's price list arrives, or before low stock should turn into orders on its own.
- For the supplier itself: its address, terms and email, use
purchasing_save_supplier.
What it does
Which Inventory items a supplier sells: their article code, the unit cost in the supplier's currency, the pack size and minimum order, the lead time in days, and a fixed quantity to order at a time when there is one. Saved by SKU (saving again changes it). The first supplier of an item is its preferred one; preferred: true moves it. purchasing_draft_reorders orders from the preferred supplier.
What comes back
items: each saved item with the supplier, SKU, code, cost, pack size, minimum, lead time and whether this supplier is the preferred one. Every reply also carries cost_usd and balance_usd.
Inputs
| Name | Type | What it is |
|---|---|---|
supplierRequired | integer or string | A supplier_id, or the supplier's name. 1 to 200 characters, at least 1. |
itemsRequired | array of objects | 1 to 200 items. |
items[].skuRequired | string | Up to 64 characters. |
items[].code | string | The supplier's own article number. Up to 64 characters. |
items[].unit_costRequired | number or string | Up to 24 characters. |
items[].pack_size | number or string | Sold in packs of this many. Default 1. Up to 24 characters. |
items[].min_order | number or string | Up to 24 characters. |
items[].order_quantity | number or string | Always order this many (rounded up to packs). Up to 24 characters. |
items[].lead_days | integer | 0 to 365. |
items[].preferred | boolean |
The call
Over MCP, call purchasing_save_supplier_items on https://api.conecto.chat/mcp/purchasing. Over REST:
curl -X POST https://api.conecto.chat/v1/tools/purchasing_save_supplier_items \
-H "Authorization: Bearer $CONECTO_KEY" \
-H "Content-Type: application/json" \
-d '{"supplier":"Nordstahl Küchentechnik GmbH","items":[{"sku":"GN-PAN-11","code":"NS-GN11-65","unit_cost":"18.50","pack_size":10,"min_order":20,"lead_days":7}]}'When it refuses
A refused call costs nothing and says what to do next.
| Code | When | What to do |
|---|---|---|
not_found404 | No supplier of the business has that supplier_id or name. | Call purchasing_list_suppliers, or add the supplier with purchasing_save_supplier. |
not_found404 | A SKU is not an Inventory item. | Add it with inventory_save_items first. |
invalid_input400 | A cost, pack size, minimum or lead time is not a number within its limits. | Send numbers like 18.50; a pack size above 0. |
More Purchasing tools
All 25 tools- Add or change a supplier
purchasing_save_supplierAdds a supplier or changes one: contact, email for orders, address, currency, payment terms and the book account their bills go to.$0.01 a call - List suppliers
purchasing_list_suppliersSuppliers by name, each with what is owed to them on open bills and how many orders are open.Free* - List what suppliers sell
purchasing_list_supplier_itemsWhat suppliers sell: codes, costs, packs, minimums, lead times and the preferred supplier, for one supplier or one SKU.Free* - Draft reorders for low stock
purchasing_draft_reordersDrafts one purchase order per supplier for every item at or below its reorder point, counting what is already on order.$0.01 per draft order - Draft a purchase order
purchasing_create_orderDrafts a purchase order to a supplier: lines (with Inventory SKUs if you like), currency, delivery date and stock location.$0.01 a call - Change a draft order, or mark it sent
purchasing_update_orderChanges a draft order, or records it as sent without emailing it.$0.01 a call - Email a purchase order
purchasing_send_orderEmails an order to the supplier with a link to its PDF; a draft takes the next number first.$0.10 a call - Receive a delivery
purchasing_receiveRecords what arrived on a sent order; lines with a SKU come into Inventory at the ordered cost.$0.01 a call
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md