Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

get-note-metadata

Retrieve note metadata AppleScript cannot expose—pinned state, checklist flags, trash/recovery state, preview snippet, and password hint—by note ID.

Instructions

[BETA] Use when: reading note metadata AppleScript cannot expose — pinned state, checklist flags, trash/recovery state, preview snippet, password hint — by id. Returns: a metadata object; fields vary by macOS version and are omitted when unavailable. Do not use when: you need the body (get-note-content) or per-item checklist state (get-checklist-state). Note: reads the NoteStore SQLite database read-only and requires Full Disk Access. BETA — the database schema changes between macOS releases, so some fields may be absent. Works on trashed notes that AppleScript can no longer resolve.

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>"
    },
    "name": "get-note-metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesNote ID: x-coredata id, Notes UUID, or numeric key

Output Schema

NameRequiredDescriptionDefault
pinnedNo
snippetNo
hasChecklistNo
passwordHintNo
widgetSnippetNo
smartFolderQueryNo
passwordProtectedNo
recoveringFromTrashNo
hasChecklistInProgressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.11

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses that it reads the NoteStore SQLite database read-only, requires Full Disk Access, and is BETA with a schema that varies by macOS version so fields may be absent. That last point is critical behavioral context an agent would otherwise be surprised by at call time.

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?

The Use when / Returns / Do not use when / Note structure is front-loaded and skimmable, with the primary condition first. Slight redundancy in repeating the BETA caveat in both the opening tag and the trailing note, and the single paragraph is dense, keeping it from a 5.

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?

A single-parameter read tool with an output schema and no annotations — exactly the profile where prerequisite (Full Disk Access) and volatility (fields vary by macOS version) disclosures matter most, and both are present. Return-value semantics are handled by the output schema plus a one-line summary, so nothing needed to call it correctly 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 coverage is 100% and the single schema description already explains the accepted id forms (x-coredata id, Notes UUID, numeric key). The description only adds the phrase "by id" and no format caveats, so it does not meaningfully extend parameter meaning beyond the schema — baseline 3.

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 ("reading note metadata") scoped "by id" and enumerates the exact fields it exposes (pinned state, checklist flags, trash/recovery state, preview snippet, password hint). It explicitly names the sibling tools it is not (get-note-content, get-checklist-state), so the boundary is unambiguous without opening a 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" condition, an explicit "Do not use when" with the two siblings that cover those needs, and adds an edge case (works on trashed notes AppleScript can no longer resolve). Both the positive and negative routing decisions 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