Skip to main content
Glama

Search cards

search-cards
Read-onlyIdempotent

Search Anki cards with native query syntax, then page results by cursor or offset to get exact totals or jump to a numeric position.

Instructions

Searches cards with Anki's native query syntax. In v1 mode, defaults to a native cursor page. 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-cards"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYesNative Anki search query, for example "deck:French is:due", "tag:verb", or "prop:lapses>3". An empty query searches all cards.
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
cardsYes
queryYes
totalYesExact count in offset mode; null in cursor mode.
offsetYesNumeric offset; null in cursor mode.
hasMoreYes
returnedYes
nextCursorNoPresent in cursor mode. Null means the search is complete.
missingCardIdsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's contribution is the pagination behavior: cursor as the default page in v1 mode and the offset escape hatch for exact totals. That is genuine behavioral context beyond the annotations, though "v1 mode" is never defined and no limits or ordering behavior are disclosed.

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

Conciseness3/5

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

Two sentences, front-loaded with purpose, which is good. But "In v1 mode, defaults to a native cursor page" leans on undefined jargon and the second sentence paraphrases the pagination parameter that the schema already explains, so not every clause earns its place.

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?

With an output schema present, return values need no explanation, and annotations plus an 80%-covered schema carry most of the remaining load. The description supplies the pagination decision model, leaving only the meaning of "v1 mode" and result ordering unaddressed.

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 coverage is 80%, so the baseline is 3, and the description largely restates what the schema already documents about cursor and offset. It adds the useful framing that cursor is the default page while offset yields an exact total, but no new detail on query syntax or limit bounds.

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?

"Searches cards with Anki's native query syntax" gives a specific verb and resource, and the word "cards" implicitly separates it from search-notes and search-media-files. It stops short of naming or contrasting a sibling explicitly, so an agent must infer the boundary from the noun 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?

The description gives real selection guidance for pagination modes (offset when an exact total or numeric position is needed, cursor otherwise), but offers nothing on when to choose this tool over search-notes or search-media-files, nor any prerequisites such as collection state.

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