Skip to main content
Glama

Reposition note type field

reposition-note-type-field
Idempotent

Moves an Anki note-type field to a new zero-based order while preserving existing note values; previews changes by default in dry-run mode.

Instructions

Moves a note-type field to a new zero-based order while preserving all note values. 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>",
      "fieldName": "<fieldName>",
      "newOrder": "<newOrder>"
    },
    "name": "reposition-note-type-field"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoWhen true, validate and preview the new order without modifying Anki
newOrderYesZero-based field order. Use 0 to make this the first field.
fieldNameYesExisting Anki note-type field name
modelNameYesAnki note type name. AnkiConnect calls note types "models" in its API.
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
scopeWarningYes
previousFieldsYes
afterSchemaHashYesSHA-256 hash of the ordered note-type field names
beforeSchemaHashYesSHA-256 hash of the ordered note-type field names
repositionedFieldYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare mutation, idempotency and non-destructiveness; the description adds the meaningful guarantee that existing note values are preserved through the reorder, which annotations cannot express. The dry-run default is restated here but also derivable from the schema default, slightly limiting the added value.

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?

Two compact sentences with the action and its safety posture front-loaded and no filler. It is appropriately sized, though it could have spent the same words on a routing hint instead of repeating the dry-run default.

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 all five parameters are fully described in the schema, so return values and parameter meaning need not be restated. For a mutation tool, the missing piece is guidance on the dry-run-to-commit transition and the expectedSchemaHash requirement, which the description leaves entirely to the schema.

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 the schema already documents modelName, fieldName, newOrder, dryRun and expectedSchemaHash in depth. The description's only parameter-adjacent detail ('zero-based order') duplicates the schema's newOrder text, adding no new semantics.

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 ('Moves a note-type field') plus the outcome constraint ('preserving all note values'), which separates it from rename/delete/add siblings. It never names those siblings explicitly, so differentiation is inferred from the verb rather than stated.

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?

No explicit when-to-use or when-not-to-use guidance and no named alternatives. The only usage signal is 'Defaults to dry-run mode', which implies a preview-first workflow, but the agent must infer when a committed reorder (dryRun=false) is appropriate.

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