Skip to main content
Glama

update_note

Modify note fields such as title, content, tags, and folder; renaming rewrites wikilinks and re-embeds changed text. Pass expected_updated_at to avoid overwriting concurrent edits.

Instructions

Update note fields. Re-embeds if title or content changed. Updates wikilinks if title changed. The server instructions' wikilink and tag rules apply when substantially rewriting — in particular, call list_tags before coining a new tag. Pass expected_updated_at (the updated_at you read) to be refused instead of overwriting a change made in between.

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": {
      "id": "<id>"
    },
    "name": "update_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe note's UUID. Live notes only; a note in the trash has to be restored before it can be edited
tagsNoReplaces the entire tag list — anything left out is removed. To add one tag, send the existing tags plus the new one
titleNoNew title. Renaming rewrites every [[link]] pointing here in other notes
contentNoReplaces the whole body. To add to a note use append_to_note, to change part of one use replace_in_note — both leave the rest untouched
folder_idNoMove the note to this folder; null moves it to the vault root. Omit to leave it where it is
expected_updated_atNoISO updated_at from when you read the note; refuses the write if it changed since

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv1.3.1
    • addedInput schema / properties / content / description
      Added value: +"Replaces the whole body. To add to a note use append_to_note, to change part of one use replace_in_note — both leave the rest untouched"
    • changedInput schema / properties / folder_id / anyOf
      Previous value: -[
      -  {
      -    "format": "uuid",
      -    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "format": "uuid",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / folder_id / description
      Added value: +"Move the note to this folder; null moves it to the vault root. Omit to leave it where it is"
    • addedInput schema / properties / id / description
      Added value: +"The note's UUID. Live notes only; a note in the trash has to be restored before it can be edited"
    • removedInput schema / properties / id / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • addedInput schema / properties / tags / description
      Added value: +"Replaces the entire tag list — anything left out is removed. To add one tag, send the existing tags plus the new one"
    • addedInput schema / properties / title / description
      Added value: +"New title. Renaming rewrites every [[link]] pointing here in other notes"
  2. First observedv1.3.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does a good job: it discloses re-embedding on title/content changes, wikilink updates on rename, and optimistic concurrency refusal via expected_updated_at. It does not mention permission requirements or explicitly warn that tags and content are replaced wholesale, though those details are in the schema.

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?

The description is front-loaded and compact, covering purpose first and then side effects, tag rules, and concurrency guidance. Every sentence adds useful information with no filler.

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?

For a six-parameter mutation tool with no annotations and no output schema, the description covers the key behavioral consequences and a critical concurrency safeguard. It relies on the rich schema for per-parameter replacement semantics, which is reasonable, though it could more explicitly warn about destructive replacement of content or tags.

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 description coverage is 100%, so the schema already documents all six parameters thoroughly. The description adds some context around expected_updated_at and title/content side effects, but most parameter meaning is already in the schema; baseline 3 is appropriate.

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 opens with a clear verb and resource: 'Update note fields.' It also clarifies important side effects, such as re-embedding and wikilink rewriting, but it does not explicitly distinguish this tool from append_to_note or replace_in_note in the description itself.

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?

It gives conditional guidance for tag creation and concurrency control, notably calling list_tags before coining a new tag and passing expected_updated_at to avoid overwrites. However, it does not state when to choose update_note over sibling tools like append_to_note, replace_in_note, or delete_note, leaving that inference to the schema.

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