Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

resolve-paragraph-anchor

Resolve a stored paragraph anchor to its current link and verify the anchored paragraph still exists after edits, returning match status, method, confidence, and change details.

Instructions

Use when: you have an anchorId and need the paragraph's current link, or want to check that an anchored paragraph still exists after edits. Returns: status (resolved, needs-reminting, ambiguous, low-confidence, not-found, note-not-found, note-deleted, note-unreadable), method (paragraph-id, exact-text, text-and-neighbours), confidence from 0 to 1, the matched block (blockIndex, text, paragraphId, paragraphIdStatus) and what changed. url is present only when status is resolved. Do not use when: you have no anchor yet (create-paragraph-anchor, or get-paragraph-link with recordAnchor). Safety: reads the NoteStore database (Full Disk Access); never changes Notes. Fails closed: equally good candidates give ambiguous and no url. needs-reminting means the paragraph was found but its stored ID is shared or missing, so no safe link exists for it; this server cannot give it a new ID. refresh rewrites the stored anchor (local registry only) after a match with confidence 0.8 or more.

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": {
      "anchorId": "<anchorId>"
    },
    "name": "resolve-paragraph-anchor"
  }
}

Input Schema

NameRequiredDescriptionDefault
refreshNoUpdate the stored anchor to the matched paragraph as it is now (default false; only at confidence 0.8 or more)
anchorIdYesAnchor id (pa_ and 24 hex digits) from create-paragraph-anchor or list-paragraph-anchors
minConfidenceNoLowest confidence accepted as a match (default 0.6)

Output Schema

NameRequiredDescriptionDefault
urlNo
matchNo
methodNo
noteIdNo
statusNo
changesNo
messageNo
anchorIdNo
resolvedNo
refreshedNo
candidatesNo
confidenceNo
needsRemintingNo
refreshSkippedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.11

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only give readOnlyHint=false and destructiveHint=false, and the description substantially fills the gap: reads the NoteStore database requiring Full Disk Access, never mutates Notes, fails closed to 'ambiguous' with no url, and explains needs-reminting as a found-but-unlinkable paragraph. The refresh side effect is disclosed as local-registry-only and gated at confidence 0.8, which is consistent with readOnlyHint=false. Slight deduction because failure behavior for I/O errors or the note-unreadable/note-deleted paths is listed as status values but not explained.

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 structured with labeled sections (Use when / Returns / Do not use when / Safety) and front-loaded guidance. The 'Returns' enumeration is largely redundant with the existing output schema, which costs some concision.

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?

An output schema exists, yet the description still explains the status vocabulary and the conditional presence of url, plus the safety and failure posture. For a resolver with ambiguous-match semantics, nothing an agent needs to call or interpret it 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 the baseline applies; the schema already documents anchorId's pattern, minConfidence's default 0.6, and refresh's 0.8 threshold. The description restates the refresh gate ('rewrites the stored anchor (local registry only) after a match with confidence 0.8 or more'), adding the local-registry scope detail but little else for anchorId or minConfidence.

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 operation on a specific resource: given an anchorId, resolve the paragraph's current link or confirm the anchored paragraph still exists. The alternatives it is not (create-paragraph-anchor, get-paragraph-link with recordAnchor) are named, so an agent can route correctly without opening schemas.

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' sections, with the no-anchor case routed to create-paragraph-anchor or get-paragraph-link with recordAnchor. This is the when/when-not/alternative pattern at full strength.

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