Skip to main content
Glama

Reposition note type template

reposition-note-type-template
Idempotent

Move a note type’s card template to a new zero-based order while preserving HTML and card history; preview changes with dry-run before applying.

Instructions

Moves one card template to a new zero-based order while preserving its HTML and existing card 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>",
      "templateName": "<templateName>",
      "newOrder": "<newOrder>"
    },
    "name": "reposition-note-type-template"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoWhen true, validate and preview the new order without modifying Anki
newOrderYesZero-based card template order. Use 0 to make it the first template.
modelNameYesAnki note type name. AnkiConnect calls note types "models" in its API.
templateNameYesAnki 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
beforeDesignHashYesSHA-256 hash of the current CSS and card templates
previousTemplatesYes
repositionedTemplateYes

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?

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), the description discloses that HTML and existing card history survive the move and that dry-run is the default, which tells the agent the operation is safe and reversible-ish in effect. It stops short of describing failure behavior when the design hash is stale, which is left to the schema.

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, front-loaded with the action and its guarantee, with the dry-run default appended as a second clause. Nothing is redundant or padded.

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?

An output schema exists and annotations cover the safety profile, so the description only needs to convey intent and guarantees, which it does. The one gap is that the stale-write guard (expectedDesignHash required when dryRun is false) is only discoverable from the schema, not flagged as a workflow prerequisite.

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 every parameter including dryRun, newOrder, modelName, templateName and expectedDesignHash is already documented. The description's 'zero-based order' merely restates the newOrder schema text, so 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?

The description states a specific verb and resource: it moves one card template to a new zero-based order. The mention of 'card template' and 'order' implicitly separates it from reposition-note-type-field and the add/rename/delete template siblings, though it never names an alternative explicitly.

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?

Usage is implied rather than prescribed: 'Defaults to dry-run mode' signals that previewing first is the expected workflow, but there is no statement of when to choose this over update-note-type-templates or reposition-note-type-field, and no prerequisites are given in prose.

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