Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

insert-link

Insert a web, mail, or Notes link into a specific Apple Notes note as a raw URL or labeled hyperlink, using revision checks to prevent overwriting changes.

Instructions

Use when: adding one web, mail or Notes link to an exact note, either as the raw URL (mode 'raw') or as label text that links to the URL (mode 'hyperlink'). Returns: exact id, the route used, whether Notes stored a link on the inserted text, the stored destination read back from the note, and the new content hash. Do not use when: linking to another note by id (insert-note-link fetches its real deep link), or you want a rich URL preview card (not available: no public automation route creates one). Safety: same guards as append-to-note (fresh expectedContentHash, attachment block, existing links must survive). Notes with native objects use native end-append and need scopeText; there only position 'end' with a blank line is supported. The link is placed in its own paragraph at the end or directly after the title; placing it inside an existing paragraph is not supported.

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": {
      "id": "<id>",
      "expectedContentHash": "<expectedContentHash>",
      "url": "<url>"
    },
    "name": "insert-link"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesExact note ID returned by search-notes, list-notes, or create-note: x-coredata id, Notes UUID, or numeric key
urlYesLink destination: absolute http(s) URL with a host, or a mailto:, notes:// or applenotes: link. No spaces.
modeNo'raw' (default) shows the URL itself; 'hyperlink' shows `label` linking to the URLraw
labelNoVisible text for mode 'hyperlink' (required there, refused in raw mode)
linkedNoRaw mode only. true (default) stores a real link on the URL text. false writes plain text with no stored link; Notes may still detect it when displaying, and the result reports linkStored.
positionNo'end' (default) or 'after-title' (first paragraph below the title)end
blankLineNoLeave a blank line between existing text and the link paragraph (default true; native-object notes require true)
scopeTextNoExisting unique phrase; required only for notes with native objects
expectedContentHashYesRevision token returned by get-note-content for this exact ID. The mutation stops if the note changed since that read.

Output Schema

NameRequiredDescriptionDefault
idNo
okNo
urlNo
modeNo
textNo
routeNo
positionNo
storedUrlNo
linkStoredNo
contentHashNo
previousContentHashNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.11

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so: it discloses the optimistic-concurrency guard (fresh expectedContentHash), the attachment block, the requirement that existing links survive, the native-object note path requiring scopeText and position 'end'. It also states a real limitation (link placed in its own paragraph, not inside an existing one) and that linkStored may differ from the request.

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?

Well front-loaded with labeled sections (Use when / Returns / Do not use when / Safety) and dense with actionable content. The 'Returns' sentence partly duplicates the existing output schema, which is the only place the text does not strictly earn its space.

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 9-parameter mutation tool with no annotations, the description covers purpose, routing, safety guards, precondition tokens, and hard positional limits. With a full output schema present, it does not need to explain return values in more depth than it does.

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 schema already documents all nine parameters and the baseline would be 3. The description still adds cross-parameter constraints the schema cannot express: native-object notes force blankLine/position and require scopeText, and raw vs hyperlink labeling determines whether 'label' applies. It stops short of naming parameters explicitly, hence not a 5.

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 ('adding one web, mail or Notes link to an exact note') and immediately distinguishes the two modes ('raw' vs 'hyperlink'). It also explicitly separates itself from the sibling insert-note-link, so an agent can route 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?

Uses an explicit 'Use when' / 'Do not use when' structure, naming insert-note-link as the alternative for note-to-note links and clarifying that a rich preview card is not achievable via any public route. The selection conditions are stated rather than inferred.

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