Skip to main content
Glama

Get note type design

get-note-type-design
Read-onlyIdempotent

Retrieve a note type's editable front/back HTML, shared CSS, fields, and revision hash before proposing design changes or editing its card layout.

Instructions

Returns the editable front/back HTML, shared CSS, fields, and revision hash for one Anki note type. Use this before proposing design changes.

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-design"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
cssYes
noteTypeYes
templatesYes
designHashYesSHA-256 hash of the current CSS and card templates
scopeWarningYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.6/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 closed-world behavior, so the safety profile is covered without the description. The description adds that the returned HTML is 'editable' and that a revision hash is included, hinting at a read-modify-write workflow, but never explains what the revision hash is for (e.g. conflict detection). Useful context, not rich.

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, zero filler, with the returned payload front-loaded and the call-to-action second. Every clause earns its place.

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?

The tool is a single-parameter read with an output schema, so return-value details need not be explained and annotations cover the safety profile. The only gap is that the revision hash's role in the workflow is left unexplained, which an agent pairing this with replace-note-type-text would benefit from knowing.

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 100% and the single parameter modelName is fully documented in the schema, including the AnkiConnect 'models' terminology. The description adds nothing about the parameter, which is acceptable at the baseline when the schema already carries the meaning.

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?

Concrete verb plus resource: 'Returns the editable front/back HTML, shared CSS, fields, and revision hash for one Anki note type.' It even enumerates the payload, so an agent knows exactly what comes back. It does not explicitly contrast itself with get-note-type-schema, which a reader could confuse it with, 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?

'Use this before proposing design changes' gives a clear read-before-edit trigger, which is real guidance. However it states no exclusions and names no alternative — an agent choosing between this and get-note-type-schema gets no disambiguation rule. Usage is implied by context rather than spelled out.

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