Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

save-attachment

Save an Apple Notes attachment to a file on disk by note and attachment IDs, returning the saved path. Use it to export attachments to an absolute path under home, temp, or /Volumes.

Instructions

Use when: writing one note attachment to a file on disk. Returns: the saved path. Do not use when: you want the bytes in-memory as base64 (fetch-attachment). Safety: writes a file; savePath must be absolute and under the home directory, a temp dir, or /Volumes, and not inside the Notes data folder. Get the ids from list-attachments first.

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>",
      "attachmentId": "<attachmentId>",
      "savePath": "<savePath>"
    },
    "name": "save-attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteIdYesNote id (from search/list): x-coredata id, Notes UUID, or numeric key
savePathYesAbsolute destination file path (must be under home, temp, or /Volumes; never inside the Notes data folder)
attachmentIdYesAttachment id (from list-attachments)

Output Schema

NameRequiredDescriptionDefault
nameNo
savedPathNo
contentTypeNo

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 well: it declares that a file is written, enumerates the allowed savePath roots (home, temp, /Volumes), excludes the Notes data folder, and states the return value. It does not say what happens if the destination already exists (overwrite vs. error), which is the main remaining behavioral gap for 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four labeled fragments (Use when / Returns / Do not use when / Safety) with zero filler, each front-loaded with its key term. Every line carries decision-relevant information.

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?

All three required parameters are documented at full coverage, an output schema covers the returned path, and the description supplies the missing prerequisite chain. Only overwrite/error behavior on an existing destination file is unaddressed for a filesystem-writing tool.

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 provenance semantics the schema only gestures at: both ids must come from list-attachments, establishing call ordering. The savePath constraint is restated from the schema rather than added, so it does not push this higher.

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: writing one note attachment to a file on disk, and returns the saved path. It explicitly contrasts with fetch-attachment for the in-memory base64 case, so an agent can distinguish the two without opening either 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?

Gives an explicit 'Use when' condition, an explicit 'Do not use when' condition naming the alternative (fetch-attachment), and a prerequisite ordering ('Get the ids from list-attachments first'). 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