Skip to main content
Glama

Sync connection

sync-connection
Destructive

Pull fresh data from this graph's connected source system (e.g. QuickBooks) into the ledger. Async — dispatches the provider's sync pipeline and returns immediately.

WHEN TO USE:

  • Before a period close when get-fiscal-calendar reports the sync_stale blocker (source sync older than period end) — sync first instead of passing allow_stale_sync=true

  • When the user says the source system has new transactions

  • After a code-level chart-of-accounts / mapping change that must back-propagate: set full_rebuild=true

PARAMETERS:

  • connection_id: Omit to auto-resolve the graph's single sync connection; needed only when the graph has several (the error lists them).

  • provider: Optional auto-resolution filter (e.g. 'quickbooks').

  • full_rebuild: EXPENSIVE — re-ingests the entire source history and resets captured/classified state. Use only after a code-level CoA/mapping change that must back-propagate; the default incremental refresh is the common case.

  • since_date: Bounded incremental window (YYYY-MM-DD); ignored when full_rebuild=true.

RETURNS: status: accepted with a task_id once dispatched; the sync runs in the background. A push-based connection has nothing to pull and returns status: no_op with a null task_id — that is a normal answer, not a failure, and there is nothing to poll for.

NOTES: After a dispatch, poll get-fiscal-calendar until last_sync_at advances past the dispatch time (and any sync_stale blocker clears) before proceeding with a close. A sync_in_progress error means a sync is already running — wait and poll rather than retrying. A bank feed never captures a line dated in a closed period; last_sync_result counts them under skipped.closed_period. To bring one in, reopen the period, then sync with since_date set to its first day.

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": "sync-connection"
  }
}

Input Schema

NameRequiredDescriptionDefault
providerNo
since_dateNo
full_rebuildNo
connection_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, and the description adds the underlying reasons: full_rebuild re-ingests all source history and resets captured/classified state, while the default incremental refresh does not. It further documents the no_op/push-based case with a null task_id (so the agent does not mistake it for failure), the post-dispatch polling procedure, and the closed-period skip semantics.

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?

Header-segmented sections (WHEN TO USE / PARAMETERS / RETURNS / NOTES) make the long text scannable and front-loaded with purpose. Some NOTES material — particularly the bank-feed/closed-period workaround — drifts into adjacent workflow guidance rather than what is needed to invoke the tool correctly.

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?

There is no output schema, and the RETURNS section compensates by describing the accepted/task_id and no_op/null shapes. For a four-parameter, zero-required, destructive async tool, nothing an agent needs to call it safely or interpret the result is missing.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must carry the load, and it does: connection_id's auto-resolution rule and error behavior, provider as an optional resolution filter, full_rebuild's cost and state-reset consequences, and since_date's bounded window plus the fact it is ignored when full_rebuild=true.

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?

The opening sentence pairs a specific verb with a specific resource ('Pull fresh data from this graph's connected source system ... into the ledger') and immediately discloses the async dispatch model, which distinguishes it from any synchronous query tool.

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?

An explicit WHEN TO USE block gives three concrete triggers, including the alternative-behavior rule (sync first instead of passing allow_stale_sync=true) and the condition that justifies full_rebuild. It also tells the agent what to do when a sync_in_progress error appears — wait and poll rather than retry.

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.