Skip to main content
Glama

Update deck preset

update-deck-preset
DestructiveIdempotent

Preview a deck preset rename or learning, display, and audio settings patch, list every affected deck, and apply only after confirming the returned impact hash.

Instructions

Previews a preset rename or a patch to learning, display order, or audio options, showing every deck using it. Requires an impact hash and explicit confirmation to apply. Does not request full FSRS rescheduling. 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>"
    },
    "name": "update-deck-preset"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
dryRunNo
presetIdYes
settingsNo
confirmChangesNo
expectedImpactHashNo

Output Schema

NameRequiredDescriptionDefault
dryRunYes
appliedYes
blockersYes
presetIdYes
verifiedYes
warningsYes
afterNameYes
beforeNameYes
impactHashYes
affectedDecksYes
settingChangesYes
affectedDeckCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true with idempotentHint=true, but the description adds material context the annotations cannot: the operation previews first, lists every deck affected by the preset, and requires an `expectedImpactHash` plus `confirmChanges` before mutating. The AnkiConnect v1 dependency is a real operational prerequisite. It omits what happens on a hash mismatch or stale preview, which keeps it below 5.

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?

Four short sentences, each doing distinct work: what it does, what it costs to apply, what it explicitly does not do, and a version prerequisite. The preview/scope information is front-loaded before the safety requirements. There is no boilerplate or restatement of the tool name.

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 destructive tool with a large nested settings object, the description covers the critical decision points: preview-by-default, impact hash, explicit confirmation, deck-usage listing, and the FSRS exclusion. Return values are covered by the output schema, so their absence is fine. The remaining gap is procedural — how to obtain a fresh impact hash and what a stale-hash failure looks like.

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?

Top-level schema coverage is effectively zero, so the description must carry the load; it does explain the roles of `expectedImpactHash` and `confirmChanges` and groups the `settings` payload into learning, display order, and audio categories. However, it never mentions `dryRun` by name or explains how the 64-hex impact hash is obtained, leaving the two hardest parameters under-specified. The nested setting properties carry their own enum and field descriptions in the schema, which the description wisely does not repeat.

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 (update a deck preset) and enumerates the patchable domains — rename, learning, display order, audio options — which maps directly onto the `name` and `settings` parameters. It also clarifies the preview-then-apply nature of the operation, which the name alone would not convey. It does not explicitly differentiate itself from create-deck-preset or delete-deck-preset, so it stops short of a 5.

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 gives a clear usage rule: the tool previews by default and only applies with an impact hash plus explicit confirmation, so an agent knows the intended two-step flow. It also states a scoping exclusion, 'Does not request full FSRS rescheduling,' which tells the agent when this tool is the wrong choice. No sibling alternatives are named, leaving the create/delete/assign routing to inference.

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