dq_check_freshness
Check data freshness and volume stability by measuring latest timestamp, lag, rows per period, empty periods, and low-volume periods to detect missing or stale loads.
Instructions
Check how recent the data is and whether volume is steady: latest timestamp, lag from now, rows per period, empty periods (missing loads) and periods with under half the median volume.
Gaps and low-volume periods are computed over the whole range; only the latest 60 periods are listed row by row. To check one segment (e.g. a single provider), use dq_run_sql with a GROUP BY.
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": {
"table": "<table>",
"time_column": "<time_column>"
},
"name": "dq_check_freshness"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grain | No | Time bucket size. | day |
| table | Yes | Table name from dq_list_sources, e.g. 'orders' or 'warehouse.main.orders'. | |
| periods | No | How many periods back from the latest timestamp, e.g. 720 hours = 30 days. | |
| time_column | Yes | Event or load timestamp column. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||