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

collection.get

collection_get
Read-only

Inspect the active Anki collection and its session; optionally pass a session ID to prevent acting on a different profile or collection.

Instructions

Inspect the active collection and its session.

Anki-Connect method collection.get. Scope: collection. Effect: read. Completion: completed. Undo: none.

Possible errors: collectionUnavailable, internalError, invalidParams, staleSession.

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": "collection_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/openWorldHint/destructiveHint, so the description earns its credit by adding things annotations cannot express: the effect line, "Undo: none", and an enumerated failure set including collectionUnavailable and staleSession. The error catalogue is genuinely useful for an agent deciding how to handle failure, though the wording partially restates the read-only annotation.

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?

The operative sentence is front-loaded and the metadata tags are compact. "Completion: completed" is near-tautological filler that does not earn its place, but the rest of the text is tight.

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

Completeness3/5

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

There is no output schema, so the description is the only place an agent could learn what "inspect the active collection" actually returns — and it says nothing about return shape or fields. The error list partially compensates, but for a zero-argument getter with no output schema this is a meaningful gap.

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 description coverage is 100% and the single optional session parameter is already fully explained in the schema, including the staleSession tripwire. The description adds nothing beyond the schema, so the baseline of 3 applies.

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?

"Inspect the active collection and its session" gives a specific verb and resource, and the "Scope: collection" tag separates it from the notes/cards/decks families. It does not, however, distinguish it from the near-neighbour reads like profiles_getActive, collection_sync, or collection_checkIntegrity.

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

Usage Guidelines2/5

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

The description offers no when-to-use guidance and names no alternatives, even though collection_sync, collection_refresh, collection_checkIntegrity and profiles_getActive surround it. The only routing hint (session coming from collection_get) lives in the schema, not the description.

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