Check how current the data is
get_data_statusCheck database freshness and completeness before drawing conclusions: reports latest data date, coverage gaps, last import, and overall status (CURRENT, STALE, INCOMPLETE, NO_DATA, IMPORT_FAILED).
Instructions
Report how current and complete the database is: latest data date, coverage window, gaps, last successful import, and an overall status of CURRENT, STALE, INCOMPLETE, NO_DATA or IMPORT_FAILED. Check this before drawing conclusions from any analysis, and say so when the status is anything other than CURRENT. The status and latest_data describe the database as a whole, so one metric that is still arriving keeps them current while another has stopped: read stale_metrics too, and do not present a listed metric as current.
Use this tool when:
the user asks how up to date their data is, or whether an import is needed.
you are about to interpret recent data and want to know whether it is fresh enough to trust.
Privacy note: this server and its SQLite file are entirely local, but the data returned by this tool becomes part of the conversation sent to whatever model the calling client is configured with. If that model runs in the cloud rather than on your machine, treat this the same as pasting the data into a chat with that provider.
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": "get_data_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stale_after_days | No | How many days the latest data may trail today before the status becomes STALE. Defaults to 2. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gaps | Yes | ||
| as_of | Yes | ||
| action | No | ||
| reason | No | ||
| source | No | ||
| status | Yes | ||
| coverage | Yes | ||
| gap_count | Yes | ||
| days_behind | No | ||
| latest_data | No | ||
| missing_days | Yes | ||
| latest_import | No | ||
| stale_metrics | No | ||
| days_with_data | Yes | ||
| stale_after_days | Yes | ||
| last_successful_import | No |