Skip to main content
Glama

Refresh Anki collection windows

refresh-collection
Idempotent

Refresh open Anki windows to display current collection state, optionally clearing the supported Note Type cache first.

Instructions

Refresh open Anki windows, optionally clearing the supported Note Type cache first. Does not reopen the collection, sync, or repair data. 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": "refresh-collection"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetNoRefresh windows, or invalidate the supported note type cache first.windows

Output Schema

NameRequiredDescriptionDefault
targetYes
profileYes
refreshedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare non-destructive, idempotent, closed-world behavior, so the bar is lower. The description still adds real context: cache invalidation may occur before the window refresh, the collection is not reopened, and an AnkiConnect v1 prerequisite is stated. It does not say whether in-flight state or unsaved edits are affected, which is a minor remaining 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: what it does, what it does not do, and the version prerequisite. The primary action is front-loaded and the caveats follow in priority order.

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?

With an output schema present, return values need no explanation, and annotations cover safety and idempotency. For a one-parameter refresh tool the description is nearly complete; the only soft spot is the undefined scope of "supported" note type cache.

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 enum parameter is fully documented in the schema, so the baseline is 3. The description restates the optional cache-clearing behavior but adds no detail on which note types count as "supported" or whether refresh is atomic across windows.

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?

The description gives a specific verb and resource ("Refresh open Anki windows") plus the optional cache-clearing variant, matching the two enum values. The negative clause ("Does not reopen the collection, sync, or repair data") separates it from sync-collection and integrity-repair siblings without needing their schemas.

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?

Usage is bounded by explicit exclusions: it is not for reopening, syncing, or repairing, which tells an agent when to look elsewhere. It stops short of naming the alternative tool to use in those cases, so it is clear context rather than full routing guidance.

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