Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

delete-note

Safely move one exact note to Recently Deleted only after its content hash matches the revision you reviewed, so newer edits are never lost.

Instructions

Use when: moving one exact note to Recently Deleted after reading and reviewing it. Returns: confirmation with the exact id. Do not use when: you only have a title or the note changed since review. Safety: requires id and expectedContentHash from get-note-content. The body comparison and delete happen in one AppleScript, so a newer edit is preserved. Refuses a note already in Recently Deleted, where a delete would be permanent. Optional ifFolderId, ifAncestorFolderId, and forbiddenAncestorFolderIds are re-checked inside that AppleScript too. Copy-then-retire: pass guardNoteId and expectedGuardContentHash (the verified copy's contentHash) to delete only while the copy still has that revision, is unlocked, is outside Recently Deleted, and is not a Quick Note; requireActiveNoteId requires the same of a second note without fingerprinting it. The guard needs Full Disk Access to rule out a Quick Note. The copy's body, lock state, and folder are checked again inside the delete AppleScript, but the pair is not one transaction.

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>"
    },
    "name": "delete-note"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesExact note ID returned by search-notes, list-notes, or create-note: x-coredata id, Notes UUID, or numeric key
ifFolderIdNoPrecondition: the note must currently be in exactly this folder (id from list-folders). Re-checked immediately before the write.
guardNoteIdNoA second note (usually the verified copy) that must still match expectedGuardContentHash, be unlocked, stay outside Recently Deleted, and not be a Quick Note. Needs Full Disk Access
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.
requireActiveNoteIdNoA second note that must still exist, be unlocked, stay outside Recently Deleted, and not be a Quick Note. Its content is not fingerprinted. Needs Full Disk Access
expectedGuardContentHashNoget-note-content contentHash of guardNoteId; required with guardNoteId
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
wasSharedNo
guardNoteIdNo
guardContentHashNo
previousContentHashNo
requireActiveNoteIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.11

TDQS

A4.6/5.0
Behavior4/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 well: it discloses the read-then-delete ordering inside a single AppleScript, the refusal of notes already in Recently Deleted (where deletion would be permanent), the Full Disk Access requirement for Quick Note detection, and the honest caveat that the guard pair is not one transaction. The only shortfall is that the guard/requireActive semantics are restated in dense prose rather than summarized crisply, and the failure mode on hash mismatch is implied rather than stated.

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 labeled sections (Use when / Returns / Do not use when / Safety) make it scannable despite the density. Some clauses are redundant — the 're-checked inside that AppleScript too' idea appears both for folder preconditions and again for the guard — and the final safety paragraph is a long run-on that could be split.

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 9-parameter destructive operation with no annotations, the description covers prerequisites, atomicity, refusal conditions, permission needs, and retry semantics after a timeout. An output schema exists, so the brief 'Returns' line is sufficient rather than a gap.

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 adds real meaning on top by framing guardNoteId/expectedGuardContentHash as a copy-then-retire pattern and explaining that requireActiveNoteId demands the same liveness without fingerprinting. The ifFolderId/ancestor preconditions are mentioned but largely restate what the schema already documents, so it falls short of a 5.

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 description states a specific verb and resource ('moving one exact note to Recently Deleted') and pins the scope to a single, already-reviewed note, which implicitly separates it from the batch sibling. An agent can identify the operation and its unit of work 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?

It provides an explicit 'Use when' condition, a matching 'Do not use when' exclusion (only a title, or content changed since review), and a named prerequisite tool (get-note-content) for obtaining the required hash. The copy-then-retire guidance further tells the agent which guard parameters to supply for the verified-copy workflow.

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