Skip to main content
Glama

Get graph sync status

get-graph-sync-status
Read-onlyIdempotent

Check data freshness on BOTH sync edges: source system → OLTP (per-connection health + last sync outcome) and OLTP → LadybugDB graph (staleness / materialization).

WHEN TO USE:

  • Before querying financial data, to verify the graph is current

  • After OLTP writes, to check if rematerialization is needed

  • After sync-connection, to verify the sync finished and see what it did (captured / updated / reconciling_items / dispatch_failed counts)

  • When the user asks about data freshness or a connection's health

RETURNS: sync_status (fresh/stale), stale_since, stale_reason, stale_duration_minutes, last_materialized_at, hours_since_materialization, materialization_count, and connections: per source connection — provider, status (connected / needs_reauth = operator must re-OAuth / error), last_sync_at, and last_sync_result (the most recent attempt's outcome summary: status, window, counts, errors — failed status means the last attempt raised and last_sync_at did NOT advance).

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-graph-sync-status"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/idempotentHint, so the bar is lower, yet the description adds substantive semantics: 'needs_reauth = operator must re-OAuth' and 'failed status means the last attempt raised and last_sync_at did NOT advance'. These interpretation rules are exactly the kind of behavioral context annotations cannot express.

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 purpose, then clearly delimited WHEN TO USE and RETURNS sections. The RETURNS block is long and enumerates many fields in a single run-on sentence, but with no output schema that verbosity is functional rather than wasteful.

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?

For a zero-parameter read tool with no output schema, the description must carry the entire return contract, and it does: top-level sync_status fields plus per-connection provider/status/last_sync_at/last_sync_result. An agent can call it and interpret the response without further discovery.

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

Parameters4/5

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

The tool takes no parameters, so there is nothing to disambiguate and the baseline of 4 applies. The description correctly spends its space on output semantics instead of inventing input guidance.

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?

States a specific verb and resource ('Check data freshness') and scopes it to 'BOTH sync edges: source system → OLTP ... and OLTP → LadybugDB graph'. This clearly separates it from the mutating sibling sync-connection, which it also references by name.

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?

Explicit WHEN TO USE bullets give four concrete triggering conditions: before querying financial data, after OLTP writes, after sync-connection, and when the user asks about freshness. The 'after sync-connection' bullet explicitly positions it as the verification step following the write-side sibling.

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.