update_unit
Update a unit's name, abbreviation, and description in Mealie using its unit ID.
Instructions
Patch a unit.
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": {
"unit_id": "<unit_id>"
},
"name": "update_unit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit_id | Yes | ||
| name | No | ||
| plural_name | No | ||
| abbreviation | No | ||
| plural_abbreviation | No | ||
| description | No | ||
| fraction | No | ||
| use_abbreviation | No |