Purchasing

Draft reorders for low stock

purchasing_draft_reorders · Changes data · Markdown

Drafts 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

From your agent’s balance. A call that fails costs nothing.

An example

Order what we're running low on, but show me the orders before they go out.

Your agent callspurchasing_draft_reorders$0.01 per draft order

The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.

With these arguments
{
  "dry_run": true
}
What comes back
{
  "orders": [],
  "plan": [
    {
      "supplier": "Nordstahl Küchentechnik GmbH",
      "currency": "EUR",
      "lines": [
        {
          "sku": "GN-PAN-11",
          "name": "GN 1/1 pan, steel, 65 mm",
          "in_stock": "0",
          "on_order": "0",
          "reorder_point": "40",
          "quantity": "80",
          "unit_cost": "18.5",
          "code": "NS-GN11-65",
          "lead_days": 7
        }
      ]
    }
  ],
  "no_supplier": [],
  "dry_run": true
}

Use it when

Once a week, or when inventory.low_stock arrives, so nothing runs out.

What it does

For every Inventory item at or below its reorder point, counting what is already on order (drafts too), draft one purchase order per supplier: the preferred supplier's fixed order quantity, or enough to bring stock and orders to twice the reorder point, raised to the minimum order and rounded up to whole packs. You check and send them (purchasing_send_order). dry_run: true only shows the plan. Items no supplier sells are listed. $0.01 per draft order.

What comes back

orders: the drafts made (none with dry_run); plan: per supplier the items, quantities and costs; no_supplier: low items no supplier sells. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
skusarray of stringsOnly these items. Up to 200 items.
dry_runbooleanDefault: false.

The call

Over MCP, call purchasing_draft_reorders on https://api.conecto.chat/mcp/purchasing. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/purchasing_draft_reorders \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"dry_run":true}'

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md