Skip to main content
Glama

Convert notes to another Note Type

convert-notes-to-note-type
Destructive

Preview and apply moving existing Anki notes to another note type, with field/template mappings and reviewed impact before confirmed conversion.

Instructions

Previews moving explicit existing Notes to another Normal Note Type. Review target-to-source field and template maps, preserved/removed Card IDs, and possible new Cards. Apply only with the reviewed hash and confirmations. Does not duplicate Notes. 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": {
      "noteIds": "<noteIds>",
      "targetNoteTypeId": "<targetNoteTypeId>"
    },
    "name": "convert-notes-to-note-type"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNo
fieldsNoOne mapping per target field; null source leaves it empty. Omit to use Anki's suggested mapping.
noteIdsYesExplicit Note IDs belonging to the same source Note Type
templatesNoOne mapping per target template; null source does not preserve an old Card in that slot. Omit to use Anki's suggestion.
confirmDataLossNoRequired when nonempty fields or existing Cards would be discarded
targetNoteTypeIdYesExisting destination Note Type ID from list-note-types
confirmConversionNo
expectedImpactHashNoHash from a reviewed preview of this exact selection and mapping
confirmCardCreationNoRequired when native generation could create new Cards

Output Schema

NameRequiredDescriptionDefault
dryRunYes
fieldsYes
impactYes
appliedYes
blockersYes
verifiedYes
warningsYes
templatesYes
impactHashYes
convertedNotesYes
missingNoteIdsYes
sourceNoteTypeYes
targetNoteTypeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the destructive annotation, it discloses the preview/apply split, field and template mapping review, preserved/removed Card IDs, possible new Cards, hash-based apply gating, and no-duplication behavior. It also states the AnkiConnect version requirement. This is strong behavioral context for a destructive mutation.

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?

The description is five compact sentences with the purpose and preview requirement front-loaded. Each sentence contributes operational information and none is redundant.

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 nine parameters, destructive annotations, and an output schema, the description covers the core conversion workflow and safety gates well. It leaves minor gaps around the exact per-confirmation-flag behavior and environment prerequisites beyond AnkiConnect v1, but it is largely sufficient.

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?

The description adds meaning beyond the schema by linking target-to-source field and template maps to review outcomes, and by explaining that the hash and confirmations gate application. It does not fully explain each of the nine parameters, such as the specific confirmation flags or dryRun default, but it reinforces the schema's key semantics.

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?

The description states a specific verb and resource: moving explicit existing Notes to another Normal Note Type. It clearly distinguishes conversion from creation or duplication by saying "explicit existing Notes" and "Does not duplicate Notes," and it frames both preview and apply behavior.

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 clear workflow guidance: preview first, review mappings and Card IDs, then apply only with the reviewed hash and confirmations. It does not explicitly compare this tool with alternatives or state when not to use it, so it falls short of full alternative-routing guidance.

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