Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

get-paragraph-link

Idempotent

Generate a direct applenotes:// link that opens Apple Notes at a specific paragraph or heading, enabling precise sharing or revisiting of exact note content.

Instructions

Use when: you need a link that opens Notes at one paragraph (for example a heading) of a note. Returns: a direct applenotes://showNote?identifier=&paragraphID= url and the selected paragraph, only when that paragraph's stored ID is present and appears in no other paragraph of the note. Otherwise an error whose structuredContent.reason says why: paragraph-id-shared, paragraph-id-missing, no-match, ambiguous-paragraph (pass occurrence or a longer snippet), occurrence-out-of-range, ambiguous-note, encrypted. Do not use when: you want a link to the whole note (get-note-link). Safety: never changes Notes or a paragraph ID, so a paragraph without a unique ID cannot be linked. Requires Full Disk Access. Without recordAnchor it writes nothing; with recordAnchor it also writes the local anchor registry file (mode 0600), so the tool is not marked read-only. A later edit in Notes can replace the ID and break the link.

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": "get-paragraph-link"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoExact note ID (x-coredata id, Notes UUID, or numeric key); give id or title
matchNoThe whole paragraph text, compared the same way
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 (case, spacing and Unicode width are ignored); 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
recordAnchorNoAlso record a paragraph anchor for the linked paragraph so resolve-paragraph-anchor can find it after edits (default false; writes only the local anchor registry)

Output Schema

NameRequiredDescriptionDefault
idNo
urlNo
anchorIdNo
paragraphNo
identifierNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.11

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already state readOnlyHint=false, idempotentHint=true, destructiveHint=false, and the description explains exactly that asymmetry: nothing changes in Notes, but with recordAnchor it writes a 0600 local anchor registry, which accounts for the non-read-only hint. It also discloses the Full Disk Access requirement and the fragility of links after edits. However, the error reason taxonomy it lists (paragraph-id-shared, encrypted, etc.) restates what structuredContent already carries, so the incremental behavioral disclosure is good but not exceptional.

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?

Labeled sections (Use when / Returns / Do not use when / Safety) front-load the decision-critical information. The error enumeration and the density of the last two paragraphs cost it a point, but nearly every clause carries operational value.

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 an 8-parameter tool with a mutation side effect, it covers prerequisites (Full Disk Access), the write boundary (recordAnchor only), failure modes, and durability caveats; with an output schema present it correctly does not over-explain the return payload beyond what structuredContent supplies.

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, and the description still adds meaning the schema does not: that occurrence only matters when contains/match hits several paragraphs, and that a longer snippet is an alternative disambiguator. It does not explain id vs title mutual exclusivity or folder scoping, which the schema already covers.

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 concrete verb+resource ('a link that opens Notes at one paragraph of a note') and immediately disambiguates from the obvious sibling by naming get-note-link as the whole-note alternative. An agent can pick this tool without opening any 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?

Has an explicit 'Use when' clause with a concrete example (a heading), an explicit 'Do not use when' with the named alternative (get-note-link), and per-error remedies such as 'pass occurrence or a longer snippet' for ambiguous-paragraph. This is the full when/when-not/alternative triad.

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