Log or change a repair
save_repairRecord or update a one-off item repair with date, work, problem, provider, parts, cost, warranty, and linked maintenance task; repairs count toward cost of ownership.
Instructions
Records a repair of an item — a one-off fix, not scheduled maintenance: when (repairedOn), what was done (work), what went wrong (problem), who did it (providerId, from list_providers), parts, what it cost (cents) — or, with id, changes one. warrantyEndsOn adds a warranty on the repair to the item's warranties; taskId links it to a maintenance task of that item. Repairs count in the item's cost of ownership (get_item's cost). Use it when the person says something was fixed ("the plumber replaced the water heater's thermostat, $180"). Returns the repair with its id.
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_repair"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The repair to change, from get_item; leave out to add a new one | |
| work | No | What was done: "Replaced the drain pump" | |
| parts | No | Parts used: "Drain pump 00436440" | |
| itemId | No | To log one: the item's id, from search_inventory | |
| taskId | No | The maintenance task it was part of, if any (its id from list_maintenance) | |
| problem | No | What went wrong: "Wouldn't drain, error E21" | |
| costCents | No | What it cost, in cents (parts and labour) | |
| providerId | No | Who did it, if not you: a service provider's id (list_providers) | |
| repairedOn | No | When it was repaired, yyyy-mm-dd | |
| warrantyEndsOn | No | If the repair has its own warranty: when it ends, yyyy-mm-dd — added to the item's warranties |