Skip to main content
Glama

Assign deck preset

assign-deck-preset
DestructiveIdempotent

Preview and assign a preset to explicitly selected normal decks without including descendants or triggering full FSRS rescheduling. Requires an impact hash and confirmation.

Instructions

Previews assigning a preset to explicitly selected normal decks, without adding descendants or requesting full FSRS rescheduling. Requires an impact hash and explicit confirmation. Requires AnkiConnect v1.

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": {
      "presetId": "<presetId>",
      "deckIds": "<deckIds>"
    },
    "name": "assign-deck-preset"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNo
deckIdsYesExplicit normal deck IDs; descendants are not automatically included
presetIdYes
confirmChangesNo
expectedImpactHashNo

Output Schema

NameRequiredDescriptionDefault
dryRunYes
appliedYes
changesYes
blockersYes
presetIdYes
verifiedYes
warningsYes
impactHashYes
presetNameYes
unchangedDeckIdsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag the call as destructive, non-read-only and idempotent, but the description adds real context beyond them: a preview-first flow, the need to supply an impact hash from a prior evaluation, and an explicit confirmation step before mutation. Behavioral scope is also bounded by stating descendants are not included and FSRS rescheduling is not requested. It stops short of saying what actually changes on decks that already have a preset, which is the main residual risk.

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?

Three short sentences, front-loaded with the operation and its scope, then the preconditions, then the environment requirement. No filler. Slight cost: the word "Previews" in the lead position is ambiguous and could be read as the tool's total behavior rather than its default mode.

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?

Given a destructive five-parameter mutation with an output schema and full annotations, the description covers the essential workflow (preview, hash, confirm) and the version prerequisite. The missing piece is what the applied change does to existing preset assignments or scheduling, but the output schema and annotations absorb much of that burden.

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 only 20%, with just deckIds documented in the schema, so the description has to carry weight here. It does explain expectedImpactHash and confirmChanges in prose and implies the effect of dryRun via "Previews," but it never says where the impact hash comes from or what presetId semantics are, leaving two of five parameters opaque. Partial compensation, not full.

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 uses a specific verb and resource ("assigning a preset to ... normal decks") and scopes it precisely with "explicitly selected normal decks" and "without adding descendants." That distinguishes it from sibling preset tools like update-deck-preset or create-deck-preset. The only soft spot is the leading word "Previews," which makes the operation sound read-only when it can actually apply destructive changes.

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?

It gives real constraints (no descendants, no full FSRS rescheduling, AnkiConnect v1 required, impact hash and confirmation required) that tell an agent when this call is appropriate. But it never names an alternative or an explicit when-not condition, so the agent has to infer that this is the choice for a scoped preset assignment rather than a broad one. Usage is implied rather than prescribed.

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