Inventory

Add or change a location

inventory_save_location · Changes data · Markdown

Adds a location (a warehouse, a shop, a van), or renames, describes or archives one.

$0.001 a call

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

An example

Add our new warehouse in Moorfleet as a stock location.

Your agent callsinventory_save_location$0.001 a call

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
{
  "name": "Warehouse Moorfleet",
  "description": "Storage and pickup, Moorfleeter Deich 41"
}
What comes back
{
  "location": {
    "name": "Warehouse Moorfleet",
    "description": "Storage and pickup, Moorfleeter Deich 41",
    "archived": false
  },
  "created": true
}

Use it when

Stock is kept somewhere new, or a place closes.

What it does

Add a location (a warehouse, a shop, a van) or rename, describe or archive one (only when empty).

What comes back

location: its name, description and archived; and created. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
nameRequiredstring1 to 120 characters.
new_namestringUp to 120 characters.
descriptionstringUp to 500 characters.
archivedboolean

The call

Over MCP, call inventory_save_location on https://api.conecto.chat/mcp/inventory. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/inventory_save_location \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Warehouse Moorfleet","description":"Storage and pickup, Moorfleeter Deich 41"}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
invalid_input400The name is empty or too long.Give a name of 1 to 120 characters.
name_taken409A location has that name already.Pick another name.
has_stock409The location to archive still holds stock.Move the stock elsewhere first.

Give this to your agent.

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