expiries_upcoming
Find items expiring within a set number of days, including already expired entries, and get counts for expired, due, and valid statuses.
Instructions
What expires in the next days days (default 60, max 730), already expired items included, as flat rows {id, kind, label, number, provider, validFrom, expiresAt, daysLeft, status, remindDaysBefore, vehicleId, vehicle, notes} with counts {total, expired, due, ok}. The dashboard card uses the same list.
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": "expiries_upcoming"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) |