Skip to main content
Glama

Rename note type field

rename-note-type-field
Idempotent

Rename a field across every note in an Anki note type while preserving existing values and updating template references automatically.

Instructions

Renames a field across every note of one note type while preserving its values. Anki updates template references to the renamed field.

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>",
      "oldFieldName": "<oldFieldName>",
      "newFieldName": "<newFieldName>"
    },
    "name": "rename-note-type-field"
  }
}

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.
newFieldNameYesNew field name. Anki special field names such as Tags, Type, Deck, Card, and FrontSide are not allowed.
oldFieldNameYesExisting Anki note-type field name
expectedSchemaHashNoHash returned by get-note-type-schema; required when dryRun is false and blocks stale writes

Output Schema

NameRequiredDescriptionDefault
dryRunYes
fieldsYes
appliedYes
changedYes
modelNameYes
validationYes
renamedFieldYes
scopeWarningYes
previousFieldsYes
afterSchemaHashYesSHA-256 hash of the ordered note-type field names
beforeSchemaHashYesSHA-256 hash of the ordered note-type field names

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, it discloses two real behavioral traits: field values are preserved, and template references are rewritten as a side effect. It does not mention that dryRun defaults to true or that expectedSchemaHash blocks stale writes when dryRun is false, but the schema documents both, so the description's contribution is solid rather than complete.

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 sentences, front-loaded with the action and scope, then the side effect. 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?

With annotations covering the safety profile, a full input schema, and an output schema, the description supplies the one thing structured fields can't: the consequence of the rename on templates and values. Only the recommendation to preview with dryRun before committing is missing.

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% and every parameter has a meaningful description, including the model/note type terminology and reserved field names. The description adds no parameter-specific meaning, so the 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 a field') plus precise scope ('across every note of one note type'), which distinguishes it from rename-note-type and rename-note-type-template by the word 'field'. Sibling names are not called out explicitly, so it stops short of a 5.

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 only implied by the scope phrase; the description never says when to prefer this over rename-note-type-template or add/delete-note-type-field, and it doesn't mention the dryRun preview path despite it being the default. An agent can infer the intent, but there is no explicit routing guidance.

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