Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

update-note

Replace the body of one exact Apple Note by ID after reading it; the expected content hash stops the write if the note changed.

Instructions

Use when: replacing the body of one exact Apple Note after reading it by id. Returns: exact id, new content hash, and visible-text readback verification. Do not use when: you only have a title, the note changed since the read, or the note has attachments. Safety: requires the exact note id and expectedContentHash from get-note-content. The server checks rich metadata revision, atomically checks the AppleScript body, blocks native objects/checklists, and verifies actual link destinations after saving. Optional ifFolderId, ifAncestorFolderId, and forbiddenAncestorFolderIds are re-checked inside the same AppleScript as the write. Preserve returned HTML links unless allowLinkChanges is explicitly requested. Notes.app normalizes HTML, so rich formatting is not claimed as byte-identical.

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>",
      "expectedContentHash": "<expectedContentHash>",
      "newContent": "<newContent>"
    },
    "name": "update-note"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesExact note ID returned by search-notes, list-notes, or create-note: x-coredata id, Notes UUID, or numeric key
formatNoContent format: 'plaintext' (default) or 'html' for rich formattingplaintext
newTitleNoNew title for plaintext updates. Ignored when format is 'html'; include the visible title as the first line of newContent instead.
ifFolderIdNoPrecondition: the note must currently be in exactly this folder (id from list-folders). Re-checked immediately before the write.
newContentYesNew note body. AppleScript cannot produce true Apple Notes checklists; checkbox inputs and `- [ ]` markdown do not render as checkable items. Use a plain list and convert in Notes.app with ⇧⌘L.
timeoutSecondsNoPer-call timeout in seconds (1-120) for each Notes.app automation step this call runs, overriding APPLE_NOTES_MCP_TIMEOUT_MS. A timed-out write is uncertain, not failed: read the note by id before any retry.
allowLinkChangesNoSet true only when the user explicitly intends to remove, relabel or change existing links. Defaults to preserving all links.
ifAncestorFolderIdNoPrecondition: the note must be inside this folder or any of its subfolders. Re-checked immediately before the write.
expectedContentHashYesRevision token returned by get-note-content for this exact ID. The mutation stops if the note changed since that read.
forbiddenAncestorFolderIdsNoPrecondition: the note must not be inside any of these folders or their subfolders (for move-note and batch-move-notes, neither may the destination). Re-checked immediately before the write.

Output Schema

NameRequiredDescriptionDefault
idNo
okNo
titleNo
sharedNo
contentHashNo
previousContentHashNo
verifiedVisibleTextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.11

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses the optimistic-concurrency model (expectedContentHash, metadata revision check), atomic AppleScript re-checking of folder preconditions, blocked native objects/checklists, link-destination verification after save, and the important caveat that a timed-out write is uncertain rather than failed. It also sets an honest expectation that HTML is normalized rather than byte-identical.

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?

Labeled sections (Use when / Returns / Do not use when / Safety) front-load the selection decision before the safety detail, which is the right ordering. The prose is dense but nearly every clause carries actionable information; the safety block runs slightly long and could be split further for scanning.

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

Completeness5/5

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

For a 10-parameter mutation with no annotations, the definition covers selection criteria, required preconditions, concurrency and timeout failure modes, and atomicity guarantees. Although an output schema exists and return details were not strictly required, the included readback-verification summary is accurate and adds confidence rather than duplicating schema data.

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 coverage is 100%, so the schema already documents each parameter; the description still adds real meaning by explaining that expectedContentHash must come from a prior get-note-content call and that the three folder parameters are re-validated inside the same AppleScript as the write. It also clarifies the interaction between newTitle and format=html and the default link-preserving behavior of allowLinkChanges.

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: 'replacing the body of one exact Apple Note', with the scoping constraint 'by id' that separates it from title-based or append operations. The named sibling set includes append-to-note and create-note, and this definition makes clear it is a full-body replacement rather than an append or creation.

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?

Explicit 'Use when' and 'Do not use when' blocks name three concrete exclusion conditions (title-only, stale read, note has attachments). What is missing is a direct routing statement naming the correct alternative for those cases — the agent must infer search-notes or get-note-content from the 'only have a title' phrasing.

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

Deploy Server

Other Tools