Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

list-smart-folders

Read-only

Lists Apple Notes Smart Folders with their decoded rules, filters, stored queries, and optionally the notes currently shown in each folder.

Instructions

Use when: listing Smart Folders and the rules that define them. Returns: each smart folder's name, ids, account, and parent, its rules decoded as match ("all"/"any"/"none") plus filters (each with a readable description), the stored query with the outer deleted wrapper removed, and the raw stored query JSON. With includeMatchingNotes, also the notes Notes.app currently shows in each folder. Do not use when: listing all folders with paths (list-folders, which lists smart folders alongside ordinary ones) or searching notes (search-notes). Safety: read-only; reads the NoteStore database and requires Full Disk Access. includeMatchingNotes asks Notes.app (Automation permission) for each folder's current contents rather than re-evaluating the rules. Unrecognized rules are kept as "unknown" filters and set fullyDecoded false.

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-smart-folders"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum matching notes returned per folder (default 50; count is always total)
includeMatchingNotesNoAlso list the notes Notes.app currently shows in each smart folder (default false)

Output Schema

NameRequiredDescriptionDefault
countNo
fullyDecodedNo
smartFoldersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.11

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only supply readOnlyHint=true; the description adds the operationally critical context that it reads the NoteStore database and requires Full Disk Access, and that includeMatchingNotes triggers an Automation permission prompt. It also discloses that includeMatchingNotes returns what Notes.app currently shows rather than re-evaluating rules, and that unrecognized rules are preserved as 'unknown' filters with fullyDecoded=false.

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?

Well-structured with front-loaded 'Use when', then 'Returns', 'Do not use when', and 'Safety'. The Returns block is long and partly overlaps a declared output schema, but it justifies itself by explaining rule decoding and filter normalization that a raw schema would not convey.

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 tool with an output schema, the definition covers usage boundaries, permission prerequisites, decode semantics, and edge-case handling (unknown filters, fullyDecoded). Nothing an agent needs 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.

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 real meaning: includeMatchingNotes is characterized by its side effect (asking Notes.app per folder, requiring Automation permission) rather than just its type. The limit parameter's per-folder semantics are left to the schema, so it falls short of a full 5.

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: listing Smart Folders together with the rules that define them. It also draws an explicit boundary against list-folders (which lists smart folders alongside ordinary ones), so the agent can pick between them without inspecting schemas.

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?

Uses explicit 'Use when' / 'Do not use when' framing and names both alternatives (list-folders and search-notes) with the conditions that select them. This is the strongest form of 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