Skip to main content
Glama

update_note_fields

Update one or more fields of an existing Anki note by providing the note ID and a mapping of field names to new values. Unchanged fields remain as-is, with automatic conversion of MathJax and code blocks.

Instructions

Update the text content of one or more fields on an existing note.

Only fields you pass in are changed; omitted fields are left alone. MathJax
(`<math>...</math>`) and code blocks/inline code are auto-converted to the
same HTML representations used by `add_note`.

Args:
    note_id: Anki note ID (not a card ID).
    fields: Mapping of field name -> new value.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
note_idYes
fieldsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries full behavioral burden. It discloses partial update behavior and auto-conversion of content, but omits potential side effects, validation, or error handling. Provides useful context but lacks depth.

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?

The description is concise at 5 sentences, with main purpose front-loaded. It efficiently covers partial updates, conversion behavior, and parameter descriptions. Minor redundancy could be removed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the output schema exists, return values aren't needed. The description covers core behavior and parameters but lacks information on error conditions (e.g., invalid note_id) or field validation. Adequate but not exhaustive.

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 0%, so description must compensate. It provides basic explanations for both parameters (note_id and fields), including that note_id is not a card ID and fields is a mapping. This adds meaning but is minimal; more detail could be given.

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 clearly states it updates text content of fields on a note, using specific verb and resource. It mentions 'update' and 'fields on an existing note', which distinguishes it from sibling tools like update_note_tags, though it does not explicitly differentiate.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description notes that MathJax and code blocks are auto-converted similarly to add_note, implying a use case, but does not explicitly state when to use this tool versus alternatives or provide exclusion criteria. No guidance on when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/samefarrar/mcp-ankiconnect'

If you have feedback or need assistance with the MCP directory API, please join our Discord server