Skip to main content
Glama

Create note type

create-note-type
Idempotent

Create a new Normal or Cloze note type from ordered fields, card templates, and shared CSS, with dry-run preview by default; no notes or cards are created.

Instructions

Creates a new Normal or Cloze note type from ordered fields, complete card templates, and shared CSS. Optionally selects its Browser sort field in AnkiConnect v1. Defaults to dry-run mode and does not create notes or cards.

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>",
      "fields": "<fields>",
      "templates": "<templates>"
    },
    "name": "create-note-type"
  }
}

Input Schema

NameRequiredDescriptionDefault
cssNoShared CSS for every card generated from the note type.card { font-family: arial; font-size: 20px; text-align: center; color: black; background-color: white; }
dryRunNoWhen true, validate and preview the note type without creating it
fieldsYesField names in their desired order. The first field is used for duplicate checks.
isClozeNoWhether to create an Anki Cloze note type
modelNameYesUnique name for the new Anki note type
sortFieldNoExact name from fields. Requires AnkiConnect v1. Omit to use Anki's default first field.
templatesYes

Output Schema

NameRequiredDescriptionDefault
cssYes
dryRunYes
fieldsYes
createdYes
isClozeYes
modelNameYes
sortFieldYesProposed or verified Browser sort field; null in legacy mode.
templatesYes
designHashYesSHA-256 hash of the current CSS and card templates
schemaHashYesSHA-256 hash of the ordered note-type field names
validationYes
scopeWarningYes
createdNoteTypeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare the non-read-only, non-destructive, idempotent, closed-world profile, so the description's job is lighter. It still adds real context: creation defaults to dry-run validation/preview, it does not create notes or cards, and the sort-field option requires AnkiConnect v1. It does not say what happens on a name collision, which is the main remaining behavioral gap.

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?

Three short sentences, front-loaded with the core action and construction inputs, then the optional behavior, then the important dry-run/scope caveat. Nothing padding or out of order.

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 no explanation, and annotations plus high schema coverage cover most of the rest. For a 7-parameter mutation that defines a whole note type, the missing pieces are minor: failure behavior on duplicate model names and whether preview output is the only dry-run artifact.

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 coverage is 86%, so the schema already documents every parameter including defaults and the forbidden special field names. The description only reinforces ordering of fields, template completeness, and the v1 requirement for sortField, adding little syntax or constraint detail beyond structured fields.

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 ("Creates a new Normal or Cloze note type") plus the inputs it is constructed from (ordered fields, card templates, shared CSS), and explicitly scopes out note/card creation, which separates it from create-notes. An agent can distinguish it from clone-note-type or add-note-type-template without opening a schema.

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: the tool is for building a note type from scratch, and the dry-run default hints at a preview-then-commit workflow. It never says when to prefer this over clone-note-type (copy an existing design) or over incremental add-note-type-field/add-note-type-template calls, which are the closest siblings.

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