Skip to main content
Glama
AnkiWeb MCP Server
by jklnr

ankiweb_search_notes

Read-onlyIdempotent

Search AnkiWeb notes using Anki query syntax to locate cards by deck, tag, or due status; then use returned note IDs to fetch or update full note details.

Instructions

Search notes on AnkiWeb using Anki query syntax (e.g. deck:Default, tag:leech, is:due).

AnkiWeb returns up to 100 matching notes per search. Pass note_id from search results to ankiweb_get_note or ankiweb_update_note for full details.

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": "ankiweb_search_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds one genuinely useful behavioral fact not in the annotations: AnkiWeb returns at most 100 matching notes per search. It does not say what happens beyond that cap, whether ordering is stable, or how the result set is truncated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the core action and syntax examples, then the follow-up routing. No filler or restated metadata.

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

Completeness4/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 not be described. For a simple two-parameter search this is nearly complete; the remaining gap is the unexplained `limit` parameter and the absence of any pagination guidance for retrieving results beyond the 100-note cap.

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?

Schema description coverage is 0%, so the description carries the full burden. It explains `query` well with concrete Anki query-syntax examples, but `limit` is never mentioned — the only related statement ("up to 100 matching notes per search") sits ambiguously against a default of 50, leaving the agent to guess the effective cap.

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 ("Search notes on AnkiWeb") plus the query dialect it accepts, with three concrete syntax examples (`deck:Default`, `tag:leech`, `is:due`). An agent can immediately distinguish this search tool from the mutation siblings like ankiweb_get_note or ankiweb_update_note.

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

Usage Guidelines4/5

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

The description gives a clear downstream workflow: pass `note_id` from results to ankiweb_get_note or ankiweb_update_note for full details, which tells the agent when this tool is the right first step. It stops short of explicit when-not-to-use guidance (e.g. when to prefer listing decks or notetypes first), so it falls below a 5.

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