Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

list-attachments

List a note's attachments by id or title, returning each name, content type, and id for save or fetch. Optionally add on-disk paths or return only the note's lead image.

Instructions

Use when: listing the attachments of one note, by id (preferred) or title. With includePaths, also where each attachment's files are on disk; with firstImage, only the note's lead visual. Returns: each attachment's name, content type, and id (use with save-attachment/fetch-attachment). includePaths adds identifier, uti, kind, bodyIndex, assetPaths (the attachment's own files), previewPath (Notes' largest rendered thumbnail, always an image file), and paths. firstImage returns {firstImage, orderSource}: the first image in body order even when its asset has not downloaded (path null), else the first scan or drawing, else null. Do not use when: you want the attachment bytes (fetch-attachment) or files on disk (save-attachment, export-attachments). Note: includePaths and firstImage need the note id and Full Disk Access; they read NoteStore and the Notes data folder read-only. Treat the returned paths as local data: copy files out with export-attachments rather than handing raw paths on.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list-attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoNote ID (preferred - more reliable than title): x-coredata id, Notes UUID, or numeric key
titleNoNote title (use id instead when available)
accountNoAccount containing the note (ignored if id is provided)
firstImageNoReturn only the note's lead visual in body order instead of the list (requires id and Full Disk Access)
includePathsNoAdd on-disk assetPaths, previewPath, and paths to each attachment (requires id and Full Disk Access)

Output Schema

NameRequiredDescriptionDefault
countNo
firstImageNo
pathsErrorNo
attachmentsNo
orderSourceNo

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 that includePaths/firstImage read NoteStore and the Notes data folder read-only, require Full Disk Access, and require the note id. It also explains edge behavior — previewPath is always an image file, firstImage can return a path of null when the asset has not downloaded — and warns to copy files out via export-attachments rather than handing on raw paths. It stops short of describing pagination or behavior for notes with zero attachments.

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 'Use when' followed by Returns, Do not use when, and a Note — the structure makes the conditional modes scannable. The dense parentheticals in the Returns sentence are heavy and partly restate what the output schema already declares, so it is slightly longer than strictly necessary.

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 tool with two mode-switching flags, an output schema, and a macOS permission dependency, the description covers everything an agent needs: prerequisites (note id, Full Disk Access), read-only guarantees, fallback ordering, and safe handling of returned paths. Return-value documentation is appropriately delegated to the output schema.

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 would be 3, but the description adds meaning beyond the schema by enumerating what includePaths actually attaches (identifier, uti, kind, bodyIndex, assetPaths, previewPath, paths) and what firstImage returns ({firstImage, orderSource}) under what fallback ordering. It does not clarify how title/account interact when both are supplied beyond the schema's 'ignored if id is provided' note, which the schema already states.

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 — 'listing the attachments of one note' — plus the scoping constraint that it operates on a single note identified by id (preferred) or title. The 'Do not use when' block names the sibling tools that handle bytes and disk files, so an agent can distinguish it from fetch-attachment/save-attachment without comparing schemas.

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?

Opens with an explicit 'Use when' condition and closes with a 'Do not use when' clause that routes to three concrete alternatives (fetch-attachment for bytes, save-attachment/export-attachments for files on disk). It also gives the selection condition for the two optional modes (includePaths, firstImage), which is the only real branch point in the tool.

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