Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

search-notes

Finds notes by title or body keyword and returns matching note IDs for follow-up read, update, delete, or move operations.

Instructions

Use when: finding notes by a keyword in the title (or body with searchContent=true) and you need their ids. Returns: matching notes with title, folder, and id; source says whether a body search read the Notes database or fell back to AppleScript. When the note text came from the database, each result has matchedIn (title, body, or both); includeWordCount adds wordCount. Do not use when: you already have a note id (use get-note-content), want every note (use list-notes), or need boolean or metadata filters (use query-notes). Prefer this first to obtain ids for subsequent read/update/delete/move calls. Note: with Full Disk Access, body search reads the Notes database (fast; the most recent 5000 notes, Recently Deleted excluded); without it, it falls back to AppleScript, which scans every body and can time out on broad terms.

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": "search-notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return. Defaults to 50 — a broad query reads several properties per match via AppleScript, so an unbounded search can time out. Pass a higher value to see more; the applied limit is disclosed in the response.
queryYes
folderNoLimit search to a specific folder
accountNoAccount to search in
modifiedSinceNoISO 8601 date string to filter notes modified on or after this date (e.g., '2025-01-01'). Useful for searching only recent notes in large collections.
searchContentNoSearch note content (title line included) instead of titles. Uses the Notes database when Full Disk Access is available, else AppleScript
includeWordCountNoAdd wordCount to each result (null when locked or unreadable). A database body search already has the text; otherwise the bodies are read in one batched read-only database query (needs Full Disk Access), which also adds matchedIn

Output Schema

NameRequiredDescriptionDefault
countNo
notesNo
sourceNo
scanTruncatedNo
wordCountUnavailableNo

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?

With no annotations, the description carries the full burden and does so: it discloses the Full Disk Access dependency, the speed difference between the database path and the AppleScript fallback, the 5000-note recency window, that Recently Deleted is excluded, and that AppleScript body scans can time out. It also explains the 'source' and 'matchedIn' fields so the agent can interpret degraded results.

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 labeled structure ('Use when' / 'Returns' / 'Do not use when' / 'Prefer this first' / 'Note') makes it scannable and front-loads the routing decision. The Returns sentence is dense with inline field names and could be trimmed, but each sentence carries information an agent needs to call this correctly.

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 7-parameter search tool with an output schema, the definition covers the selection decision, the return shape, the performance/failure modes, and the permissions prerequisite. An output schema exists, yet the description still explains result fields, which is a bonus rather than a redundancy problem.

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 86%, so the baseline is 3, but the description adds real meaning: it ties searchContent to the title-vs-body switch, explains that includeWordCount adds wordCount (null when locked) and can trigger a batched read-only database query, and surfaces that the applied limit is disclosed in the response. Minor gap: folder, account, and modifiedSince are not elaborated beyond their schema text.

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 by a keyword in the title') and immediately scopes the variant with 'or body with searchContent=true'. It also states the concrete payoff ('you need their ids'), so the agent knows exactly what this tool produces versus siblings like get-note-content or list-notes.

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, a 'Do not use when' block naming three alternatives (get-note-content, list-notes, query-notes) with the condition that selects each, and a 'Prefer this first' routing rule for obtaining ids before read/update/delete/move calls. Nothing is left to inference.

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