Skip to main content
Glama

Search notes

search-notes
Read-onlyIdempotent

Searches Anki notes using native query syntax and returns paginated results via cursor or offset. Use it to locate notes by deck, tag, note type, or field text.

Instructions

Searches notes with Anki's native query syntax. In v1 mode, defaults to a native page with a continuation cursor. Request pagination: offset for an exact total or a numeric position.

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
limitNo
queryYesNative Anki search query, for example "deck:German tag:A1", "note:Basic", or "Front:*Hund*". An empty query searches all notes.
cursorNoUse the previous nextCursor with the same query and limit. Omit it on the first cursor page.
offsetNoSupplying an offset, even 0, selects offset mode unless pagination is explicit.
paginationNoDefaults to cursor when v1 is enabled and no offset is supplied. Use offset for an exact total or a numeric position.

Output Schema

NameRequiredDescriptionDefault
notesYes
queryYes
totalYesExact count in offset mode; null in cursor mode.
offsetYesOffset used in legacy mode; null in cursor mode.
hasMoreYes
returnedYes
nextCursorNoPresent in cursor mode. Null means the search is complete.
missingNoteIdsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds pagination behavior: a cursor-based default and a continuation-cursor pattern. However, it introduces the undefined concept of "v1 mode" without explaining what enables it or how the agent should behave when it is off, which limits practical transparency.

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?

Three short sentences with the purpose front-loaded and no filler. The phrasing is economical to the point of terseness—"In v1 mode" is used without definition, so a sentence's worth of clarification would have been better spent than omitted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, and the five-parameter surface is mostly documented. The gap is the conditional pagination contract: the description never explains what v1 mode is or how cursor, offset, and pagination interact when more than one is supplied, which is the main thing an agent could get wrong here.

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

Parameters3/5

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

With schema description coverage at 80%, the schema already documents query syntax, cursor reuse, and offset mode selection. The description mostly restates that contract rather than extending it, and it does not clarify the interaction between the limit value and the two pagination modes.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Searches notes") and scopes it to Anki's native query syntax, which clearly separates it from a generic full-text search. It does not name or contrast the plausible sibling search-cards, so an agent must infer the notes-vs-cards boundary from names alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives real selection guidance for the pagination parameter ("Use offset for an exact total or a numeric position"), which tells the agent when to pick each mode. It offers no guidance on when this tool is preferable to search-cards or find-empty-notes, and no prerequisites or exclusions are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.