Add or change a warranty
save_warrantyRecords a warranty on an item — who stands behind it, when cover starts and ends, what it covers — or, with id, changes one (it was extended, a date was wrong).
Instructions
Records a warranty on an item — who stands behind it, when cover starts and ends, what it covers — or, with id, changes one (it was extended, a date was wrong). To add: itemId and endsOn; use it when the person tells you about one, or to accept a warranty the vision model read off a receipt or warranty card (get_item's suggestions) once the person has confirmed it — pass that document's id as attachmentId. Check get_item first so you don't add one twice. To change: fields left out stay as they are; null clears one. A warranty can't end before it starts. Warranties ending within 30 days show in what_needs_attention. Returns the warranty with its id and status.
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_warranty"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The warranty to change, from get_item or list_warranties; leave out to add a new one | |
| notes | No | Anything else: how to claim, the registration number | |
| endsOn | No | When cover ends, yyyy-mm-dd | |
| itemId | No | To add: the item's id, from search_inventory | |
| coverage | No | What it covers: "parts and labour", "accidental damage" | |
| provider | No | Who stands behind it: "Bosch", "Best Buy Geek Squad" | |
| startsOn | No | When cover began, yyyy-mm-dd (usually the purchase date) | |
| attachmentId | No | The receipt or warranty card it came from: a document's id from get_item |