Skip to main content
Glama

Rename note type

rename-note-type
Idempotent

Previews renaming an existing Note Type by ID, changing only its name—not fields, templates, notes, or cards—then requires a reviewed impact hash and explicit confirmation to apply.

Instructions

Previews renaming an existing Note Type by ID. Changes only the type name, not fields, templates, Notes, or Cards. Applying requires the reviewed impact hash and explicit confirmation. 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": {
      "noteTypeId": "<noteTypeId>",
      "newName": "<newName>"
    },
    "name": "rename-note-type"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoPreview without modifying Anki
newNameYes
noteTypeIdYesStable ID from list-note-types
confirmRenameNo
expectedImpactHashNoHash returned by the reviewed rename preview

Output Schema

NameRequiredDescriptionDefault
dryRunYes
appliedYes
newNameYes
blockersYes
verifiedYes
warningsYes
beforeNameYes
impactHashYes
noteTypeIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare non-read-only, idempotent, non-destructive; the description adds real value beyond them by disclosing what is and is not mutated, the mandatory preview-then-confirm gate, and the AnkiConnect v1 dependency. It stops short of saying what happens on hash mismatch or stale preview.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with the primary action and scope, then the safety gate, then the prerequisite. Nothing is redundant, though 'Requires AnkiConnect v1' reads as a terse tack-on that could be phrased more clearly.

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, so return values need not be explained, and the description covers the essentials: scope, safety workflow, and environment requirement. The main remaining gap is failure behavior when the impact hash does not match.

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?

With 60% schema coverage, the description usefully maps parameters to meaning: preview behavior (dryRun default), the reviewed impact hash (expectedImpactHash), and explicit confirmation (confirmRename). It adds intent the schema does not, though it gives no value hints for noteTypeId vs list-note-types beyond what the schema says.

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?

States a specific verb and resource (rename a Note Type by ID) and immediately delimits scope: only the type name changes, not fields, templates, Notes, or Cards. That delimitation is exactly what separates it from siblings like rename-note-type-field and rename-note-type-template.

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?

Explains the two-phase workflow clearly: the default path previews, and applying requires the reviewed impact hash plus explicit confirmation. It does not name alternative tools explicitly, but the 'not fields, templates' clause implicitly routes the agent away from field/template renames.

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