Skip to main content
Glama
AnkiWeb MCP Server
by jklnr

ankiweb_update_note

Idempotent

Updates specified fields or tags on an existing AnkiWeb note while preserving omitted fields and existing tags.

Instructions

Update field values and/or tags on an existing note.

fields supports partial updates: unspecified fields retain their current values. If tags is omitted (None), existing tags are preserved.

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": {
      "note_id": "<note_id>",
      "fields": "<fields>"
    },
    "name": "ankiweb_update_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo
fieldsYes
note_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds genuinely non-obvious semantics beyond that: fields are merged (unspecified fields keep current values) and omitted/null tags are preserved rather than cleared, which is exactly the merge-vs-replace question an agent needs answered before writing.

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, front-loaded statements with zero filler; the primary action comes first and the merge semantics follow. Nothing could be removed without losing information.

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 needn't be explained, and the mutation semantics are well covered for a 3-param nested-object tool. What is missing is auth/prerequisite context and error behavior for an unknown note_id or invalid field name, which matters for a write operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the load and does for two of three params: it explains `fields` as a partial-update map and `tags` null-means-preserve. Gaps remain — it does not say keys must be valid notetype field names, nor whether an empty string clears a field, and `note_id` is left entirely to the schema title.

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?

"Update field values and/or tags on an existing note" gives a specific verb (update) plus the exact resources touched (fields, tags) and scope (existing note), which cleanly separates it from ankiweb_add_note. It stops short of naming any sibling outright, but the add-vs-update distinction is inferable.

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 implied by "existing note" — you reach for this when a note already exists — but there is no explicit when-to-use vs. when-not guidance, no mention that authentication is required first, and no routing to ankiweb_get_note to discover current field names/values before updating.

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