Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

replace-native-tag

Replaces a native tag across a specified list of freshly read Apple Notes, adding and verifying the new tag before removing the old one and returning per-note results if a failure occurs.

Instructions

Use when: replacing one native tag across an explicit list of freshly read notes. Returns: per-note results and remaining work after any failure. Do not use when: renaming global tag definitions or Smart Folder rules. Safety: adds and verifies the new tag before removing the old one and stops on the first uncertain result.

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": {
      "notes": "<notes>",
      "oldTag": "<oldTag>",
      "newTag": "<newTag>"
    },
    "name": "replace-native-tag"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesYes
newTagYes
oldTagYes

Output Schema

NameRequiredDescriptionDefault
okNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.11

TDQS

A4/5.0
Behavior5/5

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

Only readOnlyHint=false is supplied by annotations, so the description carries real weight here and does: it discloses operation ordering (add and verify the new tag before removing the old one), failure behavior (stops on the first uncertain result), and what a partial run leaves behind (remaining work). This is exactly the context an agent needs to decide whether a failed call is safe to retry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Labeled clauses (Use when / Returns / Do not use when / Safety) front-load the selection criteria and the risk profile, and every line carries information not present in the schema or annotations. No filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A destructive multi-note mutation with an output schema and a single annotation is adequately covered: ordering, stop-on-uncertainty, exclusions, and partial-completion reporting are all stated. Gaps remain around retry semantics after a mid-list stop and the batch size ceiling, which matter for a tool that mutates up to 100 notes.

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

Parameters2/5

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

Schema description coverage is reported at 0%, so the description would need to carry parameter meaning and largely does not. It hints at the freshness requirement via 'freshly read notes' (gesturing at expectedContentHash) and at per-note failure reporting, but never explains oldTag/newTag syntax constraints, the per-note id/scopeText pairing, or the 100-note cap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('replacing one native tag') plus the scope ('across an explicit list of freshly read notes'), which clearly separates it from the add/remove tag siblings. It stops short of naming the alternative tools, so differentiation relies on the agent knowing what add-native-tags and remove-native-tags do.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides an explicit 'Use when' condition and an explicit 'Do not use when' exclusion (global tag definitions, Smart Folder rules), which is well above the usual implied-usage baseline. No alternative tool is named for the excluded cases, so the agent must infer where to route those scenarios.

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