Add warranty item
add_warranty_itemTrack a PURCHASE's warranty and auto-schedule an expiry reminder — so the owner knows whether a broken appliance is still under warranty. Provide 'title' (e.g. 'Чайник Philips HD9350') and 'purchase_date' (YYYY-MM-DD). Optional: 'warranty_months' (default 24 = EU statutory), 'receipt_id' (link the TZ-006 purchase receipt — get_warranty_item then returns its merchant/date/total), 'document_id' (link an uploaded warranty-card scan in the caller's documents), 'merchant' (free text when no receipt), 'price', 'currency' (default EUR), 'serial_masked' (LAST 4 chars only — never the full serial), 'notes', and 'reminder_offsets' (days-before-expiry to remind; default [30]). warranty_until is computed server-side (purchase_date + warranty_months). On create, one TZ-003 scheduled notification is materialized per still-future offset (server-side — it fires even with no agent running), tagged related={type:warranty,id:}. Additive; caller's own record and is written straight away; remove it with the matching delete tool. CONFIRMATION: this tool runs immediately when the caller asks for it — it writes only their own record, and they can undo it from this same surface, so the request is taken as the instruction. You get an ordinary result, not a plan_token. Everything destructive, outbound or financial still proposes and waits.
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": {
"title": "<title>",
"purchase_date": "<purchase_date>"
},
"name": "add_warranty_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| price | No | ||
| title | Yes | ||
| currency | No | ||
| merchant | No | ||
| receipt_id | No | ||
| document_id | No | ||
| purchase_date | Yes | ||
| serial_masked | No | ||
| warranty_months | No | ||
| reminder_offsets | No |