Update item
update_itemUpdate an inventory item: rename it, edit the description (null clears it), and set custom field values (keys = fieldDefId from get_item_requirements; null clears a value). Unchanged values are skipped, and every real change lands in the item's activity timeline under the connected user's name. If the edit would clear required values the call returns { missingFields } and changes nothing. Items that belong to a model cannot be renamed here (the model owns the name). Other tools change the rest: set_item_status the status, assign_item location and holder, adjust_stock and transfer_stock stock amounts; the category changes in the app only. Requires the manager role. Idempotent.
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": {
"itemId": "<itemId>"
},
"name": "update_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New item name | |
| itemId | Yes | Item id | |
| description | No | New description, or null to clear | |
| customFields | No | Field values keyed by fieldDefId (from get_item_requirements); null clears a value. Dates as a plain calendar day "YYYY-MM-DD" (a full timestamp works too, but only WITH an explicit offset — this server has no timezone and does no conversion), selects as one of the listed options, multiselect as an ARRAY of option strings, currency as a plain number in the field's own currency (see its currencyCode; default CHF), url as a full http(s) link (protocol added when missing). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Item id | |
| name | No | Item name | |
| status | No | Condition: available | in_repair | defect | lost | retired ("available" means not defect/lost/retired — the item may still be borrowed) | |
| webUrl | No | Link to this item in the web app, for a person to open. Absent when the deployment has no public address configured | |
| isDraft | No | Present and true only for an unfinished draft capture | |
| modelId | No | The item's model — pass it as create_order lines[].modelId to order any instance of this model | |
| category | No | Category name | |
| quantity | No | How many this row stands for — only on quantity-tracked pools. To count a pool, SUM this; to count serialized items, count rows | |
| container | No | The container this item is packed into, if any | |
| modelName | No | The model's name | |
| compartment | No | The compartment of that container the item sits in (absent = directly in the container) | |
| description | No | Item description | |
| instruction | No | Which values are missing | |
| primaryCode | No | The code printed on the item's asset tag — how a human tells two identical models apart. Absent when no code is attached | |
| homeLocation | No | Where the item belongs | |
| trackingMode | No | "quantity" for a stock pool counted by amount. Absent = a serialized item, i.e. this row IS one physical thing | |
| contentsCount | No | Direct contents count — containers only | |
| currentHolder | No | Person currently holding it | |
| missingFields | No | Present instead of the item when the edit would clear required values — nothing was changed | |
| currentLocation | No | Where the item is now | |
| effectiveHolder | No | Holder followed through the container chain | |
| effectiveLocation | No | Location followed through the container chain | |
| responsiblePerson | No | Person responsible |