Latest scans
patroltech_scans_list_recentUse when you want to see the most recent scans, with their guard, checkpoint and time. Returns scans with checkpoint, guard, time (UTC), validation (valid, pending review or rejected, with the reason) and suspicionReasons (empty when not suspicious): valid and suspicious are independent. Explain them only from those two fields. device and GPS distance come only when known. Items older than the data retention period come with their details hidden. With truncated: true the data is capped. Do not use when round totals are enough.
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": "patroltech_scans_list_recent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date of the range (inclusive), YYYY-MM-DD. | |
| from | No | Start date of the range, YYYY-MM-DD (never words like "yesterday"). | |
| guard | No | Guard name: only their scans. Omit it unless asked. | |
| period | No | Relative period. Use it when the user says "today", "yesterday", "last week", "last month" or similar. | |
| location | No | Location name: only its scans. Omit it unless asked. | |
| checkpoint | No | Checkpoint name: only its scans. Omit it unless asked. | |
| invalidOnly | No | true: only the rejected (invalid) scans. | |
| organization | No | Omit unless the account has more than one organization; then the exact name (or id) as listed by patroltech_account_get_context. | |
| suspiciousOnly | No | true: only the scans flagged as suspicious. |