Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

query-notes

Read-only

Find Apple Notes with boolean expressions over text and metadata, such as folder, tag, checklist state, flags, and dates, matching title or body in one read-only call.

Instructions

Use when: finding notes with a boolean expression over text and metadata — e.g. folder:Work has:checklist -checklist:done, (title:invoice OR tag:finance) modified:>=2026-07-01, pinned words:>250. Reads the Notes database directly, so it is fast and can match title OR body in one call. Syntax: bare words and "quoted phrases" match title or body (case-insensitive substring); fields title:, body:, text:, folder:, account:, tag: (values may be quoted, e.g. folder:"Work Projects"); facets has:link|attachment|checklist|drawing|image|video|audio|pdf|table|scan|url|map|tag (has:url is a link preview card, has:map a map); checklist:open|done; flags pinned, locked, shared, quicknote (or is:pinned); quote a flag word such as "quicknote" to search it as text; words:>250 and created:/modified: with =, >, >=, <, <= and YYYY-MM-DD local dates. AND is implicit; OR, NOT, leading -, and parentheses are supported; operators are case-insensitive and a quoted "and" searches the literal word. Returns: matching notes (most recently modified first) with id, title, folder, account, modified date, snippet, and matchedIn (where the positive text terms occur: title, body, or both; absent when the body is unreadable or the query has no text term), plus scan/match counts; includeWordCount adds wordCount. Ids work with get-note-content and every other id-based tool. Do not use when: Full Disk Access is unavailable (use search-notes). Scans the most recent scanLimit notes (default 500); raise it for older notes. Safety: read-only; never writes the database. Excludes Recently Deleted and folderless notes unless includeDeleted is true. Locked notes match on title and metadata only; body predicates (including negated ones such as -body:x) never match them.

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": {
      "query": "<query>"
    },
    "name": "query-notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum notes to return (default 50, max 500). The response reports how many matched in total.
queryYesBoolean query expression, e.g. `folder:"Work Projects" has:checklist -checklist:done`
scanLimitNoHow many of the most recently modified notes to examine (default 500, max 10000). The response says when older notes were left unscanned.
includeDeletedNoAlso scan notes in Recently Deleted, notes pending deletion, and folderless notes (default false)
includeWordCountNoAdd wordCount to each returned note (the count words: filters on; null when locked or unreadable). Free when the query reads bodies; a metadata-only query reads just the returned notes' bodies in one extra query (default false)

Output Schema

NameRequiredDescriptionDefault
countNo
limitNo
notesNo
matchedNo
scannedNo
eligibleNo
scanLimitNo
truncatedNo
unreadableNo
scanTruncatedNo

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?

Beyond readOnlyHint=true, it discloses that the database is read directly and never written, that Recently Deleted and folderless notes are excluded as a default, that locked notes match only on title and metadata so body predicates (including negated ones) never match them, and that results are ordered most-recently-modified first. These are non-obvious behavioral traits an agent could not infer from annotations or schema.

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?

It is long but organized into Use when / Syntax / Returns / Do not use when / Safety, with the selection condition front-loaded. A few clauses duplicate the input schema (scanLimit default, includeWordCount behavior), which is minor waste in an otherwise dense, scannable block.

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 5-parameter boolean-query tool with high schema richness and an output schema, the description still covers the grammar, facet vocabulary, negation/parenthesis rules, sorting, the matchedIn field, and the safety limits. Nothing an agent needs to construct a valid query or interpret a result 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 semantics: scanLimit's default window and the advice to raise it for older notes, and the includeDeleted scope of Recently Deleted / pending deletion / folderless notes. limit and includeWordCount are largely restated from the schema rather than extended, which keeps it just short of a 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?

The description opens with a specific verb and resource ('finding notes with a boolean expression over text and metadata') and backs it with three concrete query examples covering folders, facets, dates and word counts. It also contrasts itself with search-notes, so an agent can distinguish it from the sibling 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 gives an explicit 'Use when' condition, an explicit 'Do not use when' (Full Disk Access unavailable -> use search-notes), and the operational caveat that only the most recent scanLimit notes are examined, with advice to raise it for older notes. That is when/when-not/alternative in one place.

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