Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

set-note-pinned

Set a single note's pinned state after verifying the expected pin status and content revision; returns the confirmed state and new revision without rewriting the note body.

Instructions

Use when: setting one exact note's pinned state. Returns: the verified requested state and new revision. Do not use when: only reading pinned metadata (get-note-metadata). Safety: checks expectedPinned and a fresh content revision before changing metadata; never rewrites the body.

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>",
      "scopeText": "<scopeText>",
      "expectedPinned": "<expectedPinned>",
      "pinned": "<pinned>"
    },
    "name": "set-note-pinned"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
pinnedYes
scopeTextYesDistinctive existing phrase from below the title line, used by Notes search. Prefer plain words without punctuation, hashtags, or paths.
expectedPinnedYes
expectedContentHashYes

Output Schema

NameRequiredDescriptionDefault
okNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.11

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only supply readOnlyHint=false, so the description carries the behavioral load and does so well: it discloses that the write is guarded by expectedPinned and a fresh content revision (an optimistic-concurrency precondition), that the note body is never rewritten, and that the result is a verified state plus new revision. The main remaining gap is what happens on a stale-check failure, but the safety contract is far richer than the annotation.

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?

Tight, labeled, front-loaded structure (Use when / Returns / Do not use when / Safety) with zero filler. The 'Returns:' line is slightly redundant given an output schema exists, but it is one short clause and does not bloat the definition.

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?

For a 5-parameter mutation guarded by hash/pinned preconditions, the description covers purpose, alternative, safety, and outcome. The one material omission is the provenance of expectedContentHash (likely from get-note-metadata or native-note-state), which an agent needs to satisfy a required parameter; return values are correctly delegated to the output schema.

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 only 20% (only scopeText is documented in the schema), so the description must compensate. It does clarify the role of the otherwise opaque expectedPinned and expectedContentHash as precondition values compared against current state, but it never explains where the agent should obtain a valid content hash or what 'revision' means, leaving two required parameters underspecified.

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 ('setting one exact note's pinned state') with clear single-note scope. It distinguishes itself from the read path (get-note-metadata) but does not explicitly separate itself from a general mutator like update-note, so an agent could still wonder whether update-note can do this too.

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' defines the trigger condition and 'Do not use when' names both the exclusion (reading pinned metadata) and the alternative tool to use instead (get-note-metadata). This is the textbook shape for routing guidance.

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