Upsert Units of Measure
upsert_uomsCreate or update units of measure by abbreviation (max 100 per call, case-insensitive match). name and type (quantity/weight/volume/dimension) are required when creating; updates are preserve-on-omit. isDefault=true moves the default flag. validateOnly=true dry-runs every row. Partial success with per-row errors; resubmitting converges. Requires an operator (unpinned) credential — UoMs are tenant-wide settings. (upsert_items also auto-bootstraps the missing standard UoMs; use this tool for custom units like cases or pallets.)
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": {
"uoms": "<uoms>"
},
"name": "upsert_uoms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uoms | Yes | UoM rows to create/update (max 100). abbreviation is required per row. | |
| validateOnly | No | true = dry-run: validate + probe every row and report the would-be action per row, writing nothing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | ||
| total | No | ||
| failed | No | ||
| created | No | ||
| updated | No | ||
| uomsCreated | No | ||
| validateOnly | No | ||
| enabledCustomers | No |