Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

append-to-note

Append text or HTML to an exact Apple Note by ID after verifying its content hash, with readback confirmation that the new content was written.

Instructions

Use when: adding content to one exact 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 or the note changed since the read. Safety: protected native-object notes use native end-append with scopeText; ordinary notes retain guarded HTML editing. Optional ifFolderId, ifAncestorFolderId, and forbiddenAncestorFolderIds are re-checked inside the write AppleScript for ordinary notes, and as a separate read just before a native append. Notes.app normalizes HTML, so rich formatting is not claimed as byte-identical. Native-append HTML subset (protected notes only; ordinary notes accept any HTML Notes.app renders): Native append accepts , with href on and a font-size style on as the only attributes; a native table is refused here — use create-table; everything else needs update-note. Native append also requires scopeText, the default blank-line separator and position 'after'.

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>",
      "content": "<content>"
    },
    "name": "append-to-note"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesExact note ID returned by search-notes, list-notes, or create-note: x-coredata id, Notes UUID, or numeric key
formatNoFormat of the content being appended: 'plaintext' (default) or 'html'plaintext
contentYesText to append to the note body
positionNoWhere to insert: 'after' appends to the end (default); 'before' inserts directly below the note's title line, so the title stays firstafter
scopeTextNoExisting unique phrase required for native append to protected notes
separatorNoString placed between existing content and new content (default: two newlines)
ifFolderIdNoPrecondition: the note must currently be in exactly this folder (id from list-folders). Re-checked immediately before the write.
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.
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.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the two execution paths (native end-append vs guarded HTML editing), when preconditions are re-checked (inside the write script vs a separate read), and the caveat that Notes.app normalizes HTML so byte-identical formatting is not claimed. The allowed HTML subset and the refusal of native tables are failure behavior the agent could not learn from structured fields.

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 / Native-append subset) put the decision-relevant content first. The long inline HTML element list is dense but functional; a few phrasings, such as the parenthetical about ordinary notes accepting any HTML, could be tightened.

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 an 11-parameter mutation tool, the description covers preconditions, the two write paths, the formatting subset, and the normalization caveat. Return values are covered by the output schema, and the description still names the readback verification without over-explaining.

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 100%, so the baseline is 3; the description earns more by linking parameters to behavior — scopeText is mandatory for native append, and the default separator and position 'after' are stated as requirements of that path, and the folder preconditions are noted as re-checked just before writing. It stops short of explaining every optional precondition parameter, but adds real coupling information beyond the schema.

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?

The first line states a specific verb and resource ('adding content to one exact note after reading it by id') and the body explicitly routes anything outside the native-append subset to update-note or create-table. An agent can distinguish this from update-note and append-native without opening the schema.

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

Usage Guidelines5/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' sections are present, with the exclusion (only a title, or the note changed since the read) tied to concrete alternatives ('use create-table', 'everything else needs update-note'). Nothing about selection is left to inference.

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