Create or Update Agent Product
upsert_productCreate a new product row, or update one when id is provided. Creating requires name and business_id. Pass quantity to set/update inventory.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upsert_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Product ID to update (omit to create). | |
| sku | No | ||
| name | No | ||
| price | No | ||
| category | No | ||
| quantity | No | Inventory quantity to set (optional). | |
| attributes | No | ||
| business_id | No | Business ID. Required for create when the token can access multiple businesses. | |
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when success is false | |
| product | No | ||
| success | Yes | Whether the tool completed successfully |