Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

export-attachments

Copies all file attachments from a single Apple Notes note into a specified disk directory, or saves only its lead visual.

Instructions

Use when: copying every file attachment of one note (or only its lead visual) into a directory on disk. Returns: per attachment its id, kind, exportedTo, and exportedKind: "asset" for the real file, "fallback" for Notes' own full rendering of it (a drawing's PNG or a scan's PDF, named with that format's extension), "preview" when the asset never downloaded and only Notes' rendered thumbnail was available, or null when nothing was on disk; inBody: false marks an attachment no longer shown in the note body. Do not use when: exporting one attachment to an exact path (save-attachment) or reading bytes inline (fetch-attachment). Safety: writes files; exportDir must be absolute and under the home directory, a temp dir, or /Volumes, and not inside the Notes data folder. Existing files are never replaced: name collisions get -2, -3, ... suffixes. Reads NoteStore and the Notes data folder read-only; requires Full Disk Access. Notes.app is not opened.

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": {
      "noteId": "<noteId>",
      "exportDir": "<exportDir>"
    },
    "name": "export-attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteIdYesExact note ID returned by search-notes, list-notes, or create-note: x-coredata id, Notes UUID, or numeric key
exportDirYesAbsolute destination directory (created if missing; home, temp, or /Volumes)
firstImageOnlyNoExport only the note's lead visual (see list-attachments firstImage)

Output Schema

NameRequiredDescriptionDefault
failedNo
resultsNo
skippedNo
exportedNo
previewsNo
exportDirNo
fallbacksNo
firstImageNo

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?

No annotations are supplied, so the description carries the full burden and does: it discloses that files are written, that exportDir must be absolute, under home/temp//Volumes and outside the Notes data folder, that existing files are never replaced (with -2/-3 suffixes), that reads are read-only, that Full Disk Access is required, and that Notes.app is not launched. That is exactly the permission/destruction/auth context an agent needs before calling a write tool.

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 trigger condition, then returns, then exclusions, then safety — a good ordering with no filler prose. The exportedKind enumeration is long and partly duplicates the output schema, which slightly dilutes density.

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 three-parameter write tool with no annotations, the definition covers trigger, alternatives, path constraints, collision behavior, permissions, and failure states (fallback/preview/null). Since an output schema exists, the return-value detail is a bonus rather than a necessity, and nothing an agent needs is missing.

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 baseline is 3, but the description adds meaning not in the schema: the "not inside the Notes data folder" path restriction and the framing of firstImageOnly as exporting the note's lead visual. It doesn't add noteId format guidance beyond what the schema pattern already provides.

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 concrete verb+resource+scope: copying every file attachment of one note, or only its lead visual, into a directory on disk. That is immediately distinguishable from save-attachment (single file to exact path) and fetch-attachment (inline bytes).

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" clauses, and the exclusions name the two sibling tools (save-attachment, fetch-attachment) with the selecting condition for each. Very little 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