Get Data Freshness
get_data_freshnessAnswer "can I trust these numbers?" before you report any of them. Checks every provider connection and returns a top-level verdict — "fresh", "stale" or "degraded" — with a one-line reason, plus a per-connection row carrying its provider, sync status, last successful ingest, staleness in hours, and any sync error message. IMPORTANT CONTEXT the verdict encodes: CloudQuell cost data is INGESTED DAILY, not in real time, and the cloud providers' own billing exports lag 2-3 days behind the wall clock. A healthy org is therefore always reporting on the day before yesterday — that is normal, not stale. "degraded" means a connection is erroring, was never set up, has stopped receiving cost files (an AWS connection whose last Cost and Usage Report file was copied more than 72 hours ago shows health "replication_stalled", even when its last sync looks recent — a sync can run and copy nothing), or the account is frozen (in which case recent cost data is hidden ON PURPOSE, not missing through lag) — totals are incomplete and you should say so. "stale" means everything is wired up but at least one connection has not synced inside stale_after_hours (default 48). "fresh" means every active connection is current. Run this FIRST in any workflow that will put a number in front of a person, and quote costDataLastUpdated next to the figures. If the verdict is not "fresh", name the affected connections rather than presenting the totals as complete. Set include_ingestion_detail: false for a faster answer from the connection list alone — but that skips the AWS file-arrival check, so a stalled AWS connection can then read as fresh (the per-connection ingest counters exist only for AWS connections; a non-AWS one returns ingestionDetail: null plus a note, never zeros). limit caps the connection list. Read-only — this tool only observes; it never re-runs or repairs a connection. Example: {} returns the verdict and every connection's freshness; { "stale_after_hours": 24 } tightens the staleness threshold.
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_freshness"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max integrations to report on (default 50). | |
| response_format | No | concise = the verdict plus one row per connection (default). detailed = additionally the raw ingestion-status payload for each connection. | concise |
| stale_after_hours | No | How many hours since a connection's last successful sync counts as STALE (default 48). Cost data is ingested daily and the providers' own billing exports lag 2-3 days, so anything under ~26 hours will flag healthy connections. | |
| include_ingestion_detail | No | Also call the per-integration ingestion-status endpoint for replication/load counters and the AWS file-arrival check (default true). Set false for a faster answer from the connection list alone — it then cannot see an AWS connection that syncs but copies no files. The counters exist only for AWS connections, and a non-AWS one reports `ingestionDetail: null` with a note. |