Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

create-paragraph-anchor

Idempotent

Save a durable reference to a specific paragraph so it remains findable after note edits and shared paragraph links keep working.

Instructions

Use when: you want a reference to one paragraph that can be found again after the note is edited, for example before sharing a paragraph link that should keep working. Returns: the anchor (anchorId, note identifier, paragraph ID and its status, normalized text, fingerprints of the paragraph and its neighbours, block index, created time), whether it is new, and the paragraph's current direct url when its ID is unique. Do not use when: you only need a link right now (get-paragraph-link). Safety: reads the NoteStore database (Full Disk Access) and never changes Notes. Writes one local file, the anchor registry (APPLE_NOTES_MCP_ANCHOR_FILE, default ~/Library/Application Support/apple-notes-mcp/paragraph-anchors.json, mode 0600), which stores the paragraph's text. Unlike get-paragraph-link, a paragraph with a shared or missing ID can be anchored. Recording the same paragraph again returns the existing anchor.

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": "create-paragraph-anchor"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoExact note ID (x-coredata id, Notes UUID, or numeric key); give id or title
matchNoThe whole paragraph text
titleNoExact note title; must match one note unless folder narrows it
folderNoWith title only: the note's folder name or full path as list-folders shows it
containsNoSnippet of the paragraph; give one of contains, match, blockIndex
blockIndexNoThe paragraph's blockIndex from list-note-paragraphs
occurrenceNoWhich match to use (1-based) when contains or match hits several paragraphs

Output Schema

NameRequiredDescriptionDefault
urlNo
anchorNo
createdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.11

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses Full Disk Access requirement for the NoteStore read, guarantees Notes is never modified, names the exact local file written (env var override, default path, mode 0600), warns that paragraph text is persisted there, and documents the idempotent behavior (re-anchoring returns the existing anchor). This reconciles readOnlyHint=false with the fact that only a local registry is written.

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?

Strong labeled structure (Use when / Returns / Do not use when / Safety) with the decision rule front-loaded. Minor cost: the long 'Returns' inventory partially duplicates the existing output schema, and the Safety sentence packs several facts into one sprawling clause.

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 7-parameter, zero-required tool with an output schema and annotations, the description covers the selection rule, the persisted side effect, permissions, and idempotency — nothing an agent needs in order to call it correctly is missing.

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 every parameter is already documented at source and the baseline applies. The description adds conceptual context (fuzzy matching via neighbour fingerprints, occurrence/blockIndex selection) but no parameter-level syntax or format guidance 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?

The description states a specific effect — a durable reference to one paragraph that survives edits — and immediately contrasts it with get-paragraph-link, so an agent can distinguish it from the sibling without opening either schema. The 'Returns' sentence confirms the artifact produced (anchorId, note id, paragraph id, fingerprints).

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 both ways: 'Use when' gives the durability motivation (before sharing a link that should keep working), and 'Do not use when' names the exact alternative (get-paragraph-link) for the immediate-link case. It also states a capability difference — paragraphs with shared or missing IDs can be anchored here — which is precisely the kind of selection guidance an agent needs.

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