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

decks.get

decks_get
Read-only

Resolve an Anki deck by ID or full name without creating it or falling back to Default. Use it to verify a deck exists and retrieve its details before acting on notes or cards.

Instructions

Resolve a deck without creating it or falling back to Default.

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

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

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": {
      "deck": "<deck>"
    },
    "name": "decks_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckYesDeck: exactly one of {"id": "<deckId>"} or {"name": "<full deck name, e.g. Japanese::Verbs>"}.
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

A4/5.0
Behavior4/5

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

Annotations already cover read-only/non-destructive/non-openWorld, so the description is credited for the extras it supplies: collection scope, effect, undo=none, completion semantics, and the full error taxonomy (collectionUnavailable, invalidParams, notFound, staleSession). It omits what the resolved deck payload looks like, which is the 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?

Front-loaded one-line contract followed by compact labeled metadata (scope/effect/completion/undo) and an error list. Every sentence carries information; nothing is padded.

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 two-parameter read tool with annotations and no output schema, the definition covers scope, effect, safety, undo status, and failure modes. The only omission is any hint about the returned deck object, which is minor given the low complexity.

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%; the schema already documents the id-or-name oneOf and the session semantics in detail. The description only restates the deck argument concept in prose, adding no new syntax or constraint information, so baseline 3 applies.

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?

States a specific verb and resource ("Resolve a deck") and explicitly contrasts behavior with siblings decks_create and any default-fallback lookup ("without creating it or falling back to Default"). An agent can tell this apart from decks_list/decks_create without opening schemas.

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 no-create/no-default-fallback phrasing implies when this tool is preferred over a permissive lookup, and the error list signals strictness (notFound instead of silent default). But it never explicitly names an alternative tool or states use cases, leaving selection guidance implicit.

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