Skip to main content
Glama

sync_status

Polls a sync job started by sync_start and returns its state, per-category counts, and per-file errors. Use it to track indexing progress or diagnose why a job failed.

Instructions

Poll a sync job started by sync_start.

Returns state ('pending' | 'running' | 'succeeded' | 'failed'), counts (scanned/ingested/skipped/moved/deleted/relabelled/signed/ ignored/unreadable/failed), and any per-file errors. Only the latest job is retained — an old jobId, or any jobId from before a server restart, raises an error.

relabelled counts documents whose labels were rewritten from their stored text, with nothing re-embedded: classify.toml changed, a move put a file under other path rules, or the model answered after a model problem had left a facet unanswered. It stays 0 without a classify.toml. A labelling problem appears in errors with its message prefixed "labels:"; it is not a failure.

signed counts documents given the signature that finds their look-alikes, computed from their stored text with nothing read or embedded again: documents indexed before signatures existed, or whose signature could not be written when they were ingested. An ingest signs its own documents, so it is usually 0. A problem appears in errors prefixed "lookAlikes:"; it is not a failure.

ignored counts the files and folders a .miniragignore rule excluded from the scan, a folder once; a file indexed before its rule was added is deleted from the index and counted under deleted.

unreadable counts indexed sources this installation cannot read because an optional extra is absent (images need [ocr], and so does reading again a PDF that was read with OCR before page numbers were stored); each one appears in errors saying it was kept as it is, but it is not a failure and does not make the job fail.

A folder the scan could not see into (a missing root, one without read permission, an empty folder where a root was mounted) also appears in errors, and nothing indexed under it is deleted. It counts as failed when it is a root, when indexed files are under it, or when the sync was started for it or for a path inside it.

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": {
      "jobId": "<jobId>"
    },
    "name": "sync_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations at all, the description carries the full load, and it does disclose a lot beyond structured data: the enumerated state values, the exact counter semantics, the single-job retention limit, and which conditions raise errors versus merely land in 'errors' (labels:, lookAlikes:, unreadable, invisible folders). It never states read-only/safety profile explicitly or any rate limits, so a point is withheld, but it is far above the no-annotation baseline.

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

Conciseness3/5

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

Purpose and return shape are correctly front-loaded, but the back half runs long: five paragraphs drilling into relabelled, signed, ignored, unreadable, and folder-error semantics. Much of that overlaps with the existing output schema and could be condensed without losing decision-relevant information.

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

Completeness4/5

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

For a polling tool with one parameter and an output schema, this is close to complete — it covers return values, error/failure distinctions, retention limits, and what each counter means. The only real gap is operational: no guidance on polling interval, blocking behavior, or when to give up.

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?

Schema coverage is 0% for the single jobId parameter, so the description must compensate — and it does, explaining that jobId must come from sync_start, that only the latest job is kept, and that stale or pre-restart ids error out. It adds real meaning beyond the bare string type, though it never states the id format.

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 ('Poll a sync job started by sync_start') and immediately names the return shape (state, counts, per-file errors). This unambiguously separates it from sync_start and from the unrelated siblings like list_files or status.

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

Usage Guidelines4/5

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

The 'started by sync_start' clause plus the jobId retention rule ('only the latest job is retained — an old jobId, or any jobId from before a server restart, raises an error') tells the agent exactly when this call is valid. It stops short of prescribing polling cadence or naming an alternative for historical jobs, so it is clear context rather than a full when/when-not guide.

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