Add or change a maintenance task
save_maintenanceAdds upkeep to track — on an item (itemId), a place (locationId) or the whole household — or, with id, changes a task (title, notes, how often, what it's on, who does it, its part, or dueOn to reschedule; that also re-opens a finished…
Instructions
Adds upkeep to track — on an item (itemId), a place (locationId) or the whole household — or, with id, changes a task (title, notes, how often, what it's on, who does it, its part, or dueOn to reschedule; that also re-opens a finished one-off). To add: title, plus intervalCount + intervalUnit for something that repeats ("every 3 months") or neither for a one-off; dueOn defaults to one interval from today. By use ("every 5,000 miles"): usageEvery, on an item with a usageUnit and a reading (record_reading) — it can have a time interval too, whichever comes first. Check list_maintenance first so you don't add it twice. Not for recording that it was done: that's complete_maintenance. Returns the task with its due date.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "save_maintenance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The task to change, from list_maintenance; leave out to add a new one | |
| dueOn | No | Reschedule: when it's next due, yyyy-mm-dd (also re-opens a finished one-off) | |
| notes | No | How to do it: the part number, steps, what to watch for | |
| title | No | What to do | |
| itemId | No | The item it's for (search_inventory); null: not on an item | |
| locationId | No | The place it's for (list_locations); null: not on a place | |
| partItemId | No | The consumable it uses (a filter item); null: none | |
| providerId | No | Who usually does it, from list_providers; null: the household | |
| usageEvery | No | Due every this much use, in the item's usageUnit; null: not by use | |
| attachmentId | No | The manual it came from: a document's id from get_item | |
| intervalUnit | No | The unit of intervalCount | |
| partQuantity | No | How many of the part each time | |
| intervalCount | No | Repeats every this many intervalUnits ("every 3 months": 3); leave both out for a one-off |