Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

list-folder-tree

Read-only

Retrieve each Apple Notes account's full folder hierarchy with nested folders and direct or total note counts in one read.

Instructions

Use when: you need the folder hierarchy with note counts, per account, in one read. Returns: accounts, each with nested folders (id, identifier, name, path, kind folder/smart/trash, noteCount direct, totalNoteCount including subfolders, children) and the account's noteCount. Do not use when: you only need folder paths (list-folders) or notes (list-notes, list-recent-notes). Note: read-only NoteStore access; requires Full Disk Access. includeDeleted adds folders awaiting deletion (markedForDeletion) and folders whose account is gone.

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": "list-folder-tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNoOnly this account (exact or unique-prefix name). Omit for every account.
includeDeletedNoInclude folders marked for deletion (default false)

Output Schema

NameRequiredDescriptionDefault
accountsNo
folderCountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.11

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, and the description adds genuinely new operational context: read-only NoteStore access, a Full Disk Access prerequisite, and exactly what includeDeleted pulls in (folders markedForDeletion plus folders whose account no longer exists). It stops short of saying anything about cost or performance on very large accounts, which keeps it from a 5.

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 layout is front-loaded and skimmable with zero filler sentences. The Returns line is a long parenthetical enumeration, and since an output schema exists it is somewhat redundant, though the noteCount vs totalNoteCount distinction justifies part of it.

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?

For a read-only, two-parameter query tool with no required parameters, the definition covers purpose, return shape, prerequisites, deletion semantics, and alternatives. Nothing an agent needs in order to decide or call correctly 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 both parameters are already documented, but the description still adds meaning beyond the schema by explaining that includeDeleted surfaces orphaned-account folders, not just marked-for-deletion ones. The account-prefix behavior is left to the schema, which is acceptable at full coverage.

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?

The description opens with a specific verb-and-resource statement ('you need the folder hierarchy with note counts, per account, in one read'), then enumerates the returned shape. It immediately separates this tool from list-folders, which returns only paths, so an agent can distinguish the two without opening either 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?

It uses an explicit 'Use when' / 'Do not use when' structure and names concrete alternatives: list-folders for paths only, and list-notes/list-recent-notes for notes. The routing condition is unambiguous and complete.

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