upsert_stock_count
Create or update inventory stock counts, but this legacy immediate write bypasses safe-write controls; use set_stock_count instead for safer updates.
Instructions
[LEGACY IMMEDIATE WRITE — HIGH RISK: BYPASSES INFLOW_ENABLE_SAFE_WRITES] Use set_stock_count instead. Create or update a stock count for inventory counting
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": {
"locationId": "<locationId>"
},
"name": "upsert_stock_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Stock count ID (required for updates) | |
| remarks | No | ||
| countDate | No | Count date (ISO format) | |
| timestamp | No | ||
| locationId | Yes | Location ID |