Skip to main content
Glama

Get deck preset

get-deck-preset
Read-onlyIdempotent

Reads a deck preset's settings and lists the decks that use it, accepting either a preset ID or a normal deck ID. Use AnkiConnect v1 to resolve the preset assigned to a deck.

Instructions

Reads a deck preset's settings and the decks that use it. Pass a preset ID or a normal deck ID. 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": "get-deck-preset"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckIdNoResolve the preset currently assigned to this normal deck
presetIdNo

Output Schema

NameRequiredDescriptionDefault
presetYes
assignedDecksYes
assignedDeckCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds a real version prerequisite ('Requires AnkiConnect v1') and notes that the decks using the preset are also returned, but it does not say what happens if both IDs are supplied.

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?

Two short sentences and every part earns its place: the read scope is front-loaded, followed by the ID alternatives and the version requirement.

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?

An output schema exists, so return values need no explanation, and the description covers both input modes and the environment requirement. Only edge-case behavior (both IDs supplied, unknown ID) is left unstated.

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 only 50% (presetId has no description), and the schema does not express that the two parameters are alternatives. The description compensates by explaining that either a preset ID or a normal deck ID may be passed and what the deck ID resolves to.

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 states a specific verb and resource: it reads a deck preset's settings plus the decks that use it. That is clearly distinct from mutation siblings such as create-deck-preset or assign-deck-preset, though it does not explicitly contrast with list-deck-presets.

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 description says to pass a preset ID or a normal deck ID, which implies the two lookup modes, but it gives no explicit guidance on when to use this rather than list-deck-presets or get-deck-stats, and no exclusion for invalid inputs.

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