Skip to main content
Glama

Rename note type template

rename-note-type-template
Idempotent

Renames an Anki card template while preserving its order, HTML, generated cards, and review history. Runs in dry-run mode by default to preview changes before applying.

Instructions

Renames one card template without changing its order, HTML, generated cards, or review history. Defaults to dry-run mode.

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": {
      "modelName": "<modelName>",
      "oldTemplateName": "<oldTemplateName>",
      "newTemplateName": "<newTemplateName>"
    },
    "name": "rename-note-type-template"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoWhen true, validate and preview the rename without modifying Anki
modelNameYesAnki note type name. AnkiConnect calls note types "models" in its API.
newTemplateNameYesAnki card template name
oldTemplateNameYesAnki card template name
expectedDesignHashNoHash returned by get-note-type-design; required when dryRun is false and blocks stale writes

Output Schema

NameRequiredDescriptionDefault
dryRunYes
appliedYes
changedYes
modelNameYes
templatesYes
validationYes
scopeWarningYes
afterDesignHashYesSHA-256 hash of the current CSS and card templates
renamedTemplateYes
beforeDesignHashYesSHA-256 hash of the current CSS and card templates
previousTemplatesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.8/5.0
Behavior4/5

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

Goes beyond the annotations by enumerating exactly what is preserved: order, HTML, generated cards, and review history. That is real behavioral context the readOnlyHint=false / destructiveHint=false pair does not convey on its own. It stops short of explaining the expectedDesignHash stale-write guard, which the schema carries instead.

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, zero filler, with the behavioral guarantee front-loaded before the operational default. Nothing 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?

With annotations, a full output schema, and 100% parameter documentation, the description only needs to frame the operation, which it does. The one missing piece an agent might want is that dryRun=false additionally requires expectedDesignHash, though the schema states this.

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%, including the dryRun default and the expectedDesignHash stale-write condition, so the schema does the heavy lifting. The description adds only that dry-run is the default, which is already in the schema; baseline 3 applies.

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?

States a specific verb and resource: 'Renames one card template.' The scope word 'template' implicitly separates it from rename-note-type and rename-note-type-field, but no sibling is named explicitly, so an agent must infer the boundary from the resource noun alone.

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?

'Defaults to dry-run mode' hints at a preview-then-apply workflow, which is useful usage context. However, it never states when to pick this over update-note-type-templates or rename-note-type, nor does it mention that dryRun must be set to false to actually commit the change.

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