Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

create-note-with-attachment

Create a new Apple Note with one local file attachment in a single call. It checks the filename and file before creating the note, then verifies the attachment.

Instructions

Use when: creating a new note that holds one local file, in one call. Returns: the new note id plus the add-attachment result (attachment id, bytes, name, content hash). Do not use when: the note already exists (add-attachment). Safety: checks the file and filename before creating anything, with the same read scope as add-attachment (home, temp or /Volumes; no hidden paths or ~/Library outside iCloud Drive and CloudStorage), creates the note through Notes.app like create-note, then attaches with the same byte verification as add-attachment. If the attachment step fails before the file is inserted, the error names the new note's id; attach to it with add-attachment instead of creating another note. If insertion started but could not be verified, the outcome is uncertain: read the note with list-attachments before attaching again.

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": {
      "title": "<title>",
      "path": "<path>"
    },
    "name": "create-note-with-attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path of the local regular file to attach, in home, temp or /Volumes; hidden paths and ~/Library (except iCloud Drive and CloudStorage) are refused
titleYes
folderNoExisting folder or nested path; create it first with create-folder. A smart folder is refused before the note is created
accountNoAccount name; defaults to Notes' default
contentNoOptional plain-text body placed above the attachment
filenameNoName the attachment gets in Notes instead of the source file's name. One path component with the source file's extension; no slash, colon, or control characters, and no leading dot.

Output Schema

NameRequiredDescriptionDefault
okNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.11

TDQS

A4.9/5.0
Behavior5/5

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

Annotations supply only readOnlyHint=false; the description carries the rest and does so thoroughly. It discloses pre-flight file and filename validation, the readable path scope, that the note is created through Notes.app, byte-level verification of the attachment, and two distinct failure outcomes with recovery paths (attach to the returned note id, or inspect with list-attachments when insertion status is uncertain).

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?

Labeled sections (Use when / Returns / Do not use when / Safety) front-load the decision-relevant facts, and the long final safety passage is dense with unrecoverable-if-ignored detail rather than filler. No sentence is redundant with the annotations or schema.

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 mutating composite tool with an output schema already covering return values, the description supplies exactly the missing pieces: preconditions, scope limits, and partial-failure semantics. An agent can call this correctly and knows what to do when the attachment step fails.

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 83%, so most parameter meaning is already structured. The description still adds value by reinforcing the path scope constraints and by framing filename validation as a pre-creation check, though it says nothing extra about folder, account, or content beyond the schema.

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 composite resource: creating a new note that holds one local file, in a single call. That immediately separates it from create-note (note only) and add-attachment (attach to an existing note), both named elsewhere in the definition.

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?

Uses explicit 'Use when' / 'Do not use when' framing and names the alternative (add-attachment) for the excluded case where the note already exists. The agent has a decision rule, not just context.

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