Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

prune-paragraph-anchors

Destructive

Remove stale or specified paragraph anchor entries from the local anchor registry, with a dry-run default so you can review before deleting.

Instructions

Use when: cleaning up anchors that no longer resolve, or removing specific anchors. Returns: the stale anchors found (anchorId, status, message), how many were examined, and the ids removed (none on a dry run). Do not use when: an anchor is only ambiguous or needs reminting; it still points at something. Safety: dryRun defaults to true, so nothing is removed until you call again with dryRun false. Removes entries from the local anchor registry only; never changes Notes. Without anchorIds it resolves every anchor in scope (Full Disk Access) and treats not-found and note-not-found as stale unless statuses says otherwise. A note in Recently Deleted gives note-deleted, which is not pruned by default because the note can be restored.

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": "prune-paragraph-anchors"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoReport without removing (default true)
statusesNoResolution statuses treated as stale (default not-found, note-not-found)
anchorIdsNoRemove exactly these anchors instead of resolving to find stale ones
noteIdentifierNoOnly anchors in the note with this Notes UUID

Output Schema

NameRequiredDescriptionDefault
staleNo
dryRunNo
removedNo
examinedNo

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 already declare destructiveHint=true, and the description earns its keep beyond that: dryRun defaults to true so nothing is removed until a second call, the effect is limited to the local anchor registry and never changes Notes, and Recently Deleted notes yield note-deleted which is not pruned by default. These are precisely the behavioral details an agent needs before invoking a destructive tool.

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 and keep the density high with no filler. It is long, but every sentence carries operational meaning; the only friction is a slight tension between the 'Do not use when ambiguous' line and the ambiguous/low-confidence values permitted in statuses.

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 summarizes the return payload (stale anchors found, count examined, ids removed, none on a dry run), and it covers scope, defaults, and side-effect boundaries. Nothing material for correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the description still adds meaning the schema cannot: without anchorIds it resolves every anchor in scope (requiring Full Disk Access) and treats not-found and note-not-found as stale unless statuses overrides. That explains the interaction between parameters and the default-status policy, which is the genuinely non-obvious part.

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: cleaning up anchors that no longer resolve, or removing specific anchors by id. The two modes are named explicitly, so an agent can distinguish this from resolution-oriented siblings without opening the 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?

Provides an explicit 'Use when' clause and an explicit 'Do not use when' clause covering the nearest confusing case (an anchor that is only ambiguous or needs reminting still points at something). That negative guidance is exactly what prevents misrouting to a prune operation.

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