Skip to main content
Glama

Get note type schema

get-note-type-schema
Read-onlyIdempotent

Retrieve an Anki note type's ordered fields, browser sort field, card-template field usage, and field-order revision hash before creating notes or changing fields.

Instructions

Returns ordered fields, the Browser sort field (v1), card-template field usage, and a field-order revision hash for one Anki note type. Use this before creating notes or changing fields.

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>"
    },
    "name": "get-note-type-schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNameYesAnki note type name. AnkiConnect calls note types "models" in its API.

Output Schema

NameRequiredDescriptionDefault
noteTypeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds useful context by surfacing the field-order revision hash and the read-before-write discipline, but says nothing about failure behavior for an unknown note type or how the hash should be compared/used.

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 tight sentences: the return contents come first, the precondition second, with no filler or repetition. Every clause carries information an agent can act on.

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 safety, so the description only needs to cover purpose and timing, which it does. The one loose end is what the revision hash is for in practice (staleness detection before field edits), which is implied but not spelled out.

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?

With a single parameter at 100% schema description coverage, the schema already explains that modelName is the note type name and that AnkiConnect calls these "models". The description only restates the scope as "one Anki note type" and adds no new meaning such as case sensitivity or lookup fallback.

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 names a specific verb ("Returns") and enumerates the exact payload: ordered fields, the Browser sort field (v1), card-template field usage, and a field-order revision hash, scoped to "one Anki note type". That content list meaningfully separates it from schema-shaping siblings such as get-note-type-design, though no sibling is named explicitly.

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?

"Use this before creating notes or changing fields" gives a clear precondition and sequencing rule, which is the main decision an agent faces here. It stops short of stating when not to call it or which sibling to use instead when only styling or templates are of interest.

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