Sync connection
sync-connectionPull 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-calendarreports thesync_staleblocker (source sync older than period end) — sync first instead of passingallow_stale_sync=trueWhen 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
| Name | Required | Description | Default |
|---|---|---|---|
| provider | No | ||
| since_date | No | ||
| full_rebuild | No | ||
| connection_id | No |