Save Unit of Measure
save_uomCreate or edit one unit of measure. Omit id to create (abbreviation, name and type required; type is quantity, weight, volume or dimension); pass id to edit, where every omitted field keeps its value. Abbreviations are unique per tenant. A unit's type cannot change while items or conversions use it. isDefault=true makes it the default unit new items take; the preview names the unit that loses the flag. The tenant always keeps a default: the current one stays default until another unit takes the flag. Requires an operator (unpinned) credential. For bulk onboarding use upsert_uoms.
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": {
"input": "<input>"
},
"name": "save_uom"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The unit id (GUID) to edit; omit to create. | |
| input | Yes | The fields to set. | |
| preview | No | Step 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| uom | No | ||
| deleted | No | ||
| preview | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |