Skip to main content
Glama
Baraja MCP Server

Baraja MCP Server

by jbkroner

search_notes

Search Anki notes via Anki query syntax to find flashcards by deck, tag, or field. Supports pagination and full field values.

Instructions

Search Anki notes using Anki's search syntax (e.g., 'deck:Spanish tag:verb'). Field values are truncated to ~50 chars by default; use get_notes for exact values.

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
fullNoReturn complete, untruncated field values (default: false)
limitNoMax results to return in this page
queryYesAnki search query
fieldsNoOnly include these field names in the output, with complete values
offsetNoNumber of matching notes to skip, for paging through large result sets

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, but it does disclose the single most surprising behavior: field values are truncated to ~50 chars by default, and get_notes is the escape hatch. It omits other traits an agent would want, such as that this is a read-only operation, how large result sets behave, and what the response shape looks like.

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 sentences, both front-loaded with the highest-value information — first what it searches, then the caveat and its workaround. No filler or redundant restatement of the schema.

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?

For a five-parameter read tool with full schema coverage and no annotations or output schema, the description covers purpose, query dialect, and the main output pitfall. Pagination semantics and confirmation that results are safe/read-only live only in the schema, which is an acceptable but not complete division of labor.

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 genuinely non-obvious meaning: the default result is lossy (~50 char truncation) and full/get_notes is how you avoid it. That links the truncation default to the `full` and `fields` parameters in a way the schema descriptions alone do not explain.

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 Anki notes") and immediately scopes it with the query dialect ("Anki's search syntax") plus a concrete example. It also distinguishes itself from the sibling get_notes by explaining the truncation difference, so an agent can choose between them without opening schemas.

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?

Gives a clear reason to prefer it over the alternative ("use get_notes for exact values"), which is real routing guidance tied to a named sibling. It does not address when to page with limit/offset versus setting full, or when a non-search listing is more appropriate, so it stops short of full when/when-not coverage.

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