Skip to main content
Glama

Get Anki collection operation status

get-collection-operation
Read-onlyIdempotent

Check the status of a submitted sync, database check, or Undo without starting another operation; if waiting for user, complete it in Anki and query the same operation ID again.

Instructions

Check a submitted sync, database check, or Undo without starting another. If waitingForUser, use Anki's UI and check the same operation ID again. Requires AnkiConnect v1.

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": {
      "operationId": "<operationId>"
    },
    "name": "get-collection-operation"
  }
}

Input Schema

NameRequiredDescriptionDefault
operationIdYesOperation ID returned by a collection tool on this MCP server.

Output Schema

NameRequiredDescriptionDefault
errorYes
stateYes
methodYes
resultYes
profileYes
operationIdYesOperation ID returned by a collection tool on this MCP server.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.8/5.0
Behavior3/5

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

The annotations already establish readOnly, idempotent, non-destructive and closed-world behavior, so the safety profile is covered. The description still adds real value beyond them: the non-starting poll semantics, the meaning of the 'waitingForUser' state and the required human step in Anki's UI, and the AnkiConnect v1 prerequisite. It does not say what happens for an unknown or expired operation ID, which is the main remaining behavioral gap.

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

Conciseness5/5

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

Three short sentences, each earning its place: purpose and scope first, the handling rule for waitingForUser second, and the version prerequisite last. No filler or repetition of the title.

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 single-parameter read-only poll tool with annotations and an output schema, the description covers the essentials: what it does, what it does not do, and the state requiring user intervention. Only error/precondition handling for stale or invalid operation IDs is left unaddressed, a minor gap given the output schema exists.

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% and the single operationId field is already documented as coming from a collection tool on this server. The description reinforces this by saying to re-check 'the same operation ID again,' implying ID reuse across polls, but adds no format or validity details beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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?

The description uses a specific verb ('Check') tied to a defined resource class ('a submitted sync, database check, or Undo') and clarifies the crucial scope boundary 'without starting another,' which separates it from siblings like sync-collection or check-collection-integrity that initiate work. It does not explicitly name cancel-collection-operation as the alternative path, so it falls short of full sibling differentiation.

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?

It states the triggering condition clearly: use this after an operation has been submitted, to poll status rather than launch a new one. It also gives actionable handling for the 'waitingForUser' state ('use Anki's UI and check the same operation ID again'). What's missing is explicit routing to cancel-collection-operation when the caller wants to abort instead of wait.

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