Skip to main content
Glama

Get Data Freshness

get_data_freshness
Read-only

Answer "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

NameRequiredDescriptionDefault
limitNoMax integrations to report on (default 50).
response_formatNoconcise = the verdict plus one row per connection (default). detailed = additionally the raw ingestion-status payload for each connection.concise
stale_after_hoursNoHow 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_detailNoAlso 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / include_ingestion_detail / description
      Previous value: -"Also call the per-integration ingestion-status endpoint for replication/load counters (default true). Set false for a faster answer from the connection list alone — the counters exist only for AWS connections, and a non-AWS one reports `ingestionDetail: null` with a note."New value: +"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."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnlyHint and openWorldHint; the description goes far beyond them by explaining what each verdict actually encodes, including the daily-ingest and 2-3 day billing-export lag, the `replication_stalled` condition where a sync runs but copies no files, and frozen accounts hiding data intentionally. It also reinforces the read-only contract ("never re-runs or repairs a connection") and discloses the null-plus-note behavior for non-AWS ingestion detail rather than returning zeros.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the answer and the verdict vocabulary before the caveats, and nearly every sentence carries decision-relevant information. It is still a dense single block with an inline "IMPORTANT CONTEXT" aside and repeated warnings about the ingestion-detail flag, which could have been trimmed or split for faster scanning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, so the description carries the return-shape burden and does so fully: top-level verdict plus one-line reason, per-connection provider, sync status, last successful ingest, staleness hours, and sync error message, plus the `costDataLastUpdated` field the agent is told to quote. For a four-parameter, read-only diagnostic tool, nothing an agent needs to call it and interpret results is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3, and most description-level parameter talk restates what the schema already documents (limit capping the list, the stale_after_hours default and its ~26-hour caution, the ingestion-detail AWS blind spot). The only added value is the worked invocation examples and the workflow-level consequence of skipping the AWS file-arrival check, which is marginal against an already-complete schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb/resource and outcome: it checks every provider connection and returns a top-level verdict of "fresh", "stale" or "degraded" plus per-connection rows. The framing ("Answer 'can I trust these numbers?' before you report any of them") makes it unambiguously distinct from siblings like get_ai_spend or get_budget_status, which return figures rather than trustworthiness.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger — "Run this FIRST in any workflow that will put a number in front of a person" — plus a conditional follow-up (if the verdict is not "fresh", name the affected connections rather than presenting totals as complete). It also documents the in-tool alternative path (include_ingestion_detail: false for a faster but AWS-blind answer), which is a genuine when-to-use/when-not tradeoff.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources