Skip to main content
Glama

Clone note type

clone-note-type
Idempotent

Create a new independent note type by copying a source's ordered fields, card template HTML, and shared CSS. Use it to duplicate a card design without copying notes or cards.

Instructions

Creates an independent note type with the source's ordered fields, card template HTML, and shared CSS. In AnkiConnect v1 it preserves the Browser sort field and requires the reviewed clone hash before applying. Does not copy notes or cards.

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": {
      "sourceModelName": "<sourceModelName>",
      "targetModelName": "<targetModelName>"
    },
    "name": "clone-note-type"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoWhen true, validate and preview the clone without creating a note type
isClozeNoOptional normal/Cloze override. By default the tool detects {{cloze:...}} filters in the source templates.
sourceModelNameYesExisting note type whose ordered fields, templates, CSS, and v1 sort field should be copied
targetModelNameYesUnique name for the new independent note type
expectedCloneHashNoHash returned by the reviewed clone preview; required for apply in v1.
expectedSourceDesignHashNoSource design hash required for legacy apply; v1 apply requires expectedCloneHash.

Output Schema

NameRequiredDescriptionDefault
dryRunYes
createdYes
isClozeYes
cloneHashYes
validationYes
cloneSummaryYes
createdNoteTypeYes
isClozeDetectedYes
sourceModelNameYes
targetModelNameYes
sourceDesignHashYesSHA-256 hash of the current CSS and card templates

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 declare a non-readonly, non-destructive, idempotent, closed-world mutation. The description adds context the annotations cannot convey: the clone is independent of its source, the v1 path preserves the Browser sort field, and apply is gated on a reviewed clone hash. It omits error/conflict behavior (e.g. duplicate target name) and permission requirements, keeping it just short of a 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?

Three tight sentences: what is created and copied first, version-specific apply rules second, exclusions last. No filler, and the most decision-relevant content is front-loaded.

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?

With an output schema, full schema coverage, and annotations, the description does not need to explain returns or safety. It covers the copy scope, version-specific hash requirement, and exclusions; only edge cases such as target-name collisions and post-creation failure handling are unaddressed.

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%, so parameter meaning is already fully documented, including the hash patterns and the dryRun preview. The description corroborates the hash-gated apply flow and the sort-field carry-over but does not introduce syntax or semantics absent from the schema, so the baseline of 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?

The description uses a specific verb and resource ("Creates an independent note type") and immediately enumerates what is carried over: ordered fields, card template HTML, and shared CSS. The final sentence ("Does not copy notes or cards") carves out clear scope, which separates this clone operation from blank creation (create-note-type) and from note-conversion siblings.

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?

There is no explicit statement of when to choose this over create-note-type or convert-notes-to-note-type. The negative scope ("Does not copy notes or cards") implicitly points an agent toward a conversion tool when notes must move, but that inference is left to the reader rather than stated.

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