Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

fetch-attachment

Retrieve a single Apple Notes attachment as inline base64 bytes without writing a file. Returns name, content type, byte count, and base64 data; get IDs from list-attachments first.

Instructions

Use when: retrieving one note attachment's bytes inline as base64 (no file written). Returns: name, content type, byte count, and base64 data. Do not use when: you want it saved to disk (save-attachment). Note: 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>"
    },
    "name": "fetch-attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteIdYesNote id (from search/list): x-coredata id, Notes UUID, or numeric key
attachmentIdYesAttachment id (from list-attachments)

Output Schema

NameRequiredDescriptionDefault
nameNo
bytesNo
base64No
contentTypeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.11

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the burden, and it does disclose the key side-effect fact: bytes are returned inline and no file is written to disk. It does not cover limits on attachment size, memory behavior for large files, or failure modes, which are the remaining things an agent would want for an unannotated 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?

The Use when / Returns / Do not use when / Note structure is front-loaded and scannable with no filler. The Returns line partly duplicates the existing output schema rather than earning its space.

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?

A simple two-parameter read tool with an output schema and full schema coverage; usage, the sibling alternative, and the no-write behavior are all covered. Only edge-case behavior such as size limits or errors is absent, which is minor here.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both required parameters are already documented in the schema, including their provenance. The description's 'get the ids from list-attachments first' reinforces that but adds no format or constraint detail beyond what the schema 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 ('retrieving one note attachment's bytes inline as base64') plus the distinguishing trait '(no file written)'. This makes it immediately separable from save-attachment 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?

Explicit 'Use when' and 'Do not use when' clauses, with the alternative (save-attachment) named and the condition that selects it (you want it saved to disk). It also gives the prerequisite that ids come from list-attachments first.

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