Skip to main content
Glama
anki-connect-mcp
by SolarianGG

browser.select

browser_select

Select cards or notes in an already open Anki Browser using card or note IDs; does not open a closed browser.

Instructions

Replace selection in an already open browser.

Exactly one selector. Note IDs select their cards in card mode; card IDs select their notes in note mode. This method does not open a closed browser.

Anki-Connect method browser.select. Scope: collection. Effect: gui. Completion: operation. Undo: none.

Long-running operation: by default the server waits for the final result (see waitForCompletion / timeoutSeconds).

Possible errors: collectionUnavailable, internalError, invalidParams, invalidState, notFound, staleSession.

Input Schema

NameRequiredDescriptionDefault
cardIdsNoCards to select (decimal string, e.g. "1700000000001"). Give either this or `noteIds`.
noteIdsNoNotes to select (decimal string, e.g. "1700000000001"). Give either this or `cardIds`.
sessionNoOptional. Collection session ID: the `session` field returned by `collection_get`. Usually omit it — the server then uses the session current at the time of the call. Pass it to make the call fail with `staleSession` instead of acting on a different profile/collection than the one your IDs, cursors and tokens came from.
timeoutSecondsNoMCP option (not sent to Anki): how long to wait for completion. A timeout does not cancel the work; the pending record is returned.
waitForCompletionNoMCP option (not sent to Anki): poll operations.get until the operation finishes and return its final record. If false, return the operation handle.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=false), it discloses scope (collection), effect (gui), operation completion, no undo, the long-running wait/timeout behavior, and an explicit enumerated error set including staleSession. The clarification that stale sessions cause failure is exactly the kind of behavioral context annotations cannot carry.

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?

The key constraint (replaces selection, browser must already be open, exactly one selector) is front-loaded in the first two sentences, followed by compact metadata and an error list. The metadata line on scope/effect/undo is boilerplate but each token carries actionable information.

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

Completeness5/5

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

For a GUI-mutating, long-running operation with no output schema, the description covers preconditions, selector exclusivity, async behavior, undoability, and the failure surface. An agent has everything needed to decide whether to call it and how to interpret a failure.

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 100%, so the baseline would be 3, but the description adds meaning the schema cannot: card IDs resolve to their cards in card mode and note IDs to their notes in note mode, and it reiterates the either/or constraint. It does not further explain session or timeout tradeoffs beyond the schema text, so it falls short of a 5.

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 names a specific verb and resource ("Replace selection in an already open browser") and immediately differentiates itself from browser_open by stating it "does not open a closed browser." It also spells out the mutually exclusive selector semantics, so an agent can distinguish this from siblings like browser_getSelection.

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 precondition (an already open browser), the exclusivity rule ("Exactly one selector"), and the mode-dependent meaning of cardIds vs noteIds, which is real guidance about when a given call is valid. It stops short of explicitly routing the agent to browser_open for the closed-browser case or naming browser_getSelection as the read counterpart, so a 4 rather than a 5.

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

Deploy Server

Other Tools