Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

get-note-structure

Read-only

Retrieve a read-only structural overview of an Apple Note by exact ID, covering decoded text, block summary, links, tags, attachments, body order, and metadata.

Instructions

Use when: you want one read-only overview of a note by exact id: decoded text, a block summary, every link with its kind (inline hyperlink, rich link card, native note link, native section link, with target note and paragraph UUIDs when the URL carries them), native tags, attachments with the same kind, body order and preview list-attachments reports (gallery and recording children nested), and metadata: deepLink, isShared, isLocked, isPinned, inRecentlyDeleted, lastViewed, wordCount, charCount, attachmentCount, checklistTotal/checklistDone, hasDrawing, firstImage. Returns: the structure object. For a password-protected note, metadata and attachment rows only (bodyDecoded false, body-derived fields null). lastViewed is null with lastViewedStatus never-viewed, not-recorded, malformed or unsupported when Notes holds no real view date. Do not use when: you need per-paragraph formatting (get-note-blocks) or the editable HTML body (get-note-content). Safety: read-only; reads the NoteStore database and the Notes data folder directly and requires Full Disk Access. Link URLs are returned as stored; check linkSafe before emitting them into HTML.

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-structure"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesExact note ID returned by search-notes, list-notes, or create-note: x-coredata id, Notes UUID, or numeric key
includeTextNoInclude the decoded note text (default true). Text over APPLE_NOTES_MCP_BLOCKS_MAX_BYTES is omitted with textOmitted: true

Output Schema

NameRequiredDescriptionDefault
idNo
tagsNo
textNo
linksNo
titleNo
folderNo
accountNo
deepLinkNo
isLockedNo
isPinnedNo
isSharedNo
bodyErrorNo
charCountNo
wordCountNo
firstImageNo
hasDrawingNo
identifierNo
lastViewedNo
linkCountsNo
textLengthNo
attachmentsNo
bodyDecodedNo
textOmittedNo
blockSummaryNo
checklistDoneNo
linksCompleteNo
checklistTotalNo
attachmentCountNo
undecodedFieldsNo
lastViewedStatusNo
inRecentlyDeletedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.11

TDQS

A4.7/5.0
Behavior5/5

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

Beyond readOnlyHint=true, the description discloses that data is read directly from the NoteStore database and Notes data folder requiring Full Disk Access, what happens on password-protected notes (metadata and attachment rows only, bodyDecoded false, body-derived fields null), the lastViewedStatus sentinel values, and the linkSafe caveat before emitting URLs. These are operational traits an agent could not recover from annotations alone.

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?

Explicitly sectioned as Use when / Returns / Do not use when / Safety, so the decision-relevant routing is front-loaded. The long parenthetical enumerations (link kinds, metadata fields) are dense and partly duplicate the output schema, costing some tightness.

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?

Covers the edge cases an agent needs (truncated text, protected notes, missing view dates) and the prerequisite access, which is complete for a read tool of this complexity. The extensive restatement of return fields is redundant given the output schema, but nothing required is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds provenance for the id (values returned by search-notes/list-notes/create-note, exact id only) and surfaces the textOmitted fallback tied to includeText's byte cap. That is real meaning beyond the schema, though it stops short of describing the accepted id formats themselves as the schema does.

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?

Opens with a specific verb+resource+scope ("one read-only overview of a note by exact id") and enumerates exactly what the overview contains: decoded text, block summary, links with kind, tags, attachments, body order and metadata. The scope distinction from get-note-details/get-note-by-id is reinforced by the explicit exclusions naming block formatting and HTML body tools.

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?

Has a literal "Use when" clause naming the selection condition (single note, exact id, aggregate overview) and a "Do not use when" clause routing to get-note-blocks for per-paragraph formatting and get-note-content for editable HTML. Both alternatives and the condition that selects them are stated, not 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