Skip to main content
Glama

Update a note

update_note
Idempotent

Change a note without ever overwriting it: every change creates a new revision.

expected_version is the version read with get_note. On a conflict, read the note again and reapply your change. An omitted field keeps its value. To restore an old version: get_note(version=N), then update_note with its title, content and linked_notes. An omitted category keeps the note's category; giving one applies the new category's writing rules to the content. linked_notes, when given, replaces the list of links.

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

Input Schema

NameRequiredDescriptionDefault
titleNo
contentNo
note_idYes
categoryNo
linked_notesNo
expected_versionYes

Output Schema

NameRequiredDescriptionDefault
idYes
versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / category / anyOf
      Previous value: -[
      -  {
      -    "description": "Nom d'une catégorie déclarée par l'espace ; ses règles d'écriture s'appliquent à la note. Obligatoire si l'espace en déclare.",
      -    "maxLength": 64,
      -    "minLength": 1,
      -    "pattern": "^[-a-zA-Z0-9_]+$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Name of a category declared by the space; its writing rules apply to the note. Required if the space declares any.",
      +    "maxLength": 64,
      +    "minLength": 1,
      +    "pattern": "^[-a-zA-Z0-9_]+$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / linked_notes / anyOf
      Previous value: -[
      -  {
      -    "description": "Ids de notes de l'espace, ou d'un autre espace de la même organisation.",
      -    "items": {
      -      "format": "uuid",
      -      "type": "string"
      -    },
      -    "maxItems": 50,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Ids of notes in the space, or in another space of the same organization.",
      +    "items": {
      +      "format": "uuid",
      +      "type": "string"
      +    },
      +    "maxItems": 50,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnly=false, destructive=false and idempotent=true; the description adds the substantive behavior: revision-on-write, optimistic concurrency via expected_version, conflict recovery, omitted-field merge semantics, and the side effect that supplying a category applies that category's writing rules to the content. The revision-promotion note is genuinely useful context an agent could not infer from the annotations.

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?

Front-loaded with the most important property, then versioning, then per-field rules; nearly every sentence carries a distinct fact. The line breaks fall mid-clause in places, which slightly hurts scanability, but there is 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 an output schema (so return values need no explanation), this covers concurrency, merge behavior, category rules and link replacement. The only meaningful omission is the null-versus-omitted distinction, which the schema's null defaults leave genuinely unclear.

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?

With schema coverage reported at 0%, the description carries the burden and largely meets it: it explains expected_version's provenance, that omitted fields retain their values, that category omission preserves the current category, and that linked_notes replaces rather than appends. It does not resolve the ambiguity between passing null (all fields default to null in the schema) and omitting a field, which is the one gap that matters for correct invocation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource plus the defining invariant: "Change a note without ever overwriting it: every change creates a new revision." That distinguishes it from create_note and from get_note, which the description explicitly casts as the read-side partner.

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?

Gives clear operational context: obtain expected_version via get_note first, and on conflict re-read and reapply. It also spells out the restore workflow (get_note(version=N) then update_note with title, content, linked_notes). It stops short of stating when not to use this tool, e.g. archiving versus editing, which would have warranted a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources