Skip to main content
Glama

Synchronize the active Anki collection

sync-collection
Destructive

Preview or explicitly confirm syncing your Anki collection with its configured server, optionally including media, and return an operation ID for tracking.

Instructions

Preview or explicitly confirm a sync with Anki's configured server. A full sync may require the user to choose Upload or Download in Anki. Returns an operation ID, not completion. Requires AnkiConnect v1.

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-collection"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoReview the active profile and proposal without running the operation.
confirmNoSet true only after the user approves the reviewed collection operation.
includeMediaNoRequest media sync, if enabled in the active profile.
confirmationTokenNoShort-lived, one-use token returned by this tool's preview.

Output Schema

NameRequiredDescriptionDefault
stateYes
methodYes
profileYes
warningsYes
operationIdYes
includeMediaYesRequested media option for sync; null for other operations.
expiresInSecondsYes
confirmationTokenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructive=true, openWorld=true, and non-idempotent, so the safety profile is covered. The description adds genuinely new context: a full sync may block on a user choice in Anki, the call returns an operation ID rather than completing, and AnkiConnect v1 is required — all of which change how an agent should sequence and poll.

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?

Three short sentences, purpose front-loaded, with the async return caveat and version requirement following. No filler, though the version requirement is a small aside that could be folded into the prerequisite framing.

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?

An output schema covers the operation ID return, and annotations cover the destructive/open-world profile, so the description only needs the async and user-interaction caveats — which it supplies. It could note that follow-up status comes via get-collection-operation, but nothing essential for calling correctly is missing.

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

Parameters3/5

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

Schema coverage is 100%, so dryRun, confirm, includeMedia, and confirmationToken are all documented in the schema, including the token's one-use short-lived nature. The description only alludes to the preview/confirm pairing and adds no detail on includeMedia or the token beyond what the schema already states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('sync with Anki's configured server') and distinguishes its two modes, preview vs. explicitly confirm. The scope is clear enough to separate it from sibling tools like refresh-collection or cancel-collection-operation, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

The description establishes the two-step flow (preview first, then explicit confirmation) and notes that a full sync may require the user to pick Upload or Download. It does not say when to prefer this over lighter alternatives such as refresh-collection, leaving the choice to inference.

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