Get sync run detail
sm_get_sync_runLoad one sync run's full detail — per-stage results, progress, lookback window and pending batch count. Use after sm_list_sync_runs to explain why data is stale or a run failed. Failure detail lands in one of two places and rarely both: orchestration failures set run.errorMessage with no stage rows, while per-data-type failures leave it null and record the message on results[].errorMessage, so check both and treat status as the failure signal.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"runId": "<runId>"
},
"name": "sm_get_sync_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | The opaque 8-character hash ID correlating to the sync run. | |
| projectId | Yes | Required. The opaque alphanumeric project identifier of 8 or more characters to scope this request to. Call GET /_api/public/v1/enterprise/projects to list the project IDs available to your API key. Omitting it returns 400 VALIDATION_ERROR. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | No | Details for a specific sync run. Omits projectName, retryCount, resultsCount, and totalTables carried by the list row. | |
| code | No | A machine-readable identifier for the error type. For the full code taxonomy, see the sm_get_schema tool or the Enterprise API OpenAPI ErrorResponse component. | |
| error | No | A human-readable error message detailing what went wrong. | |
| results | No | Per-stage results for the sync run. | |
| progress | No | Per-data-type progress rows for the sync run. | |
| projectId | No | An opaque alphanumeric project identifier of 8 or more characters identifying a Space Monkey Project. Treat this value as entirely opaque; do not parse, sequentialize, or auto-generate it. | |
| pendingBatchCount | No | Number of batches still queued for processing. | |
| lookbackWindowDays | No | Number of days of history the sync covers. |