record_ingest_run
Record an ingestion pass audit: log emails seen, events written, and skipped items with reasons, then return the earliest backfill cursor for coverage tracking.
Instructions
Ingestion agent plumbing: record a run (heartbeat + audit) after every ingestion pass, even one that wrote nothing. skipped: [{source_ref, reason}] for receipts/lines the agent could not parse (never guess — skip and log). Returns the backfill cursor: earliest_window_start already covered.
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": {
"window_start": "<window_start>",
"window_end": "<window_end>",
"emails_seen": "<emails_seen>",
"events_written": "<events_written>"
},
"name": "record_ingest_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skipped | No | ||
| window_end | Yes | ||
| emails_seen | Yes | ||
| window_start | Yes | ||
| events_written | Yes |