Skip to main content
Glama
mdvault-mcp
by 0xmortuex

search_notes

Locate notes by full-text query across titles, body text, and tags, returning ranked BM25 matches with snippets and optional folder, tag, or all-term filters.

Instructions

Full-text search over note titles, body text and tags, ranked best first (BM25), with a snippet showing the best-matching line and its line number.

Matching ignores case and diacritics ("seker" finds "Seker" and "Şeker") and uses whole words, no stemming. Words in the title count more than words in the body. By default a note matches if it contains any query word, and notes containing more of them rank higher; all_terms=true requires every word. folder="Projects" limits to that folder (and below); tag="project" limits to notes with that tag or a nested tag like project/alpha.

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
tagNo
limitNo
queryYes
folderNo
all_termsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does so well: BM25 ranking order, snippet with line number, case- and diacritic-insensitive matching, whole-word matching without stemming, title field weighting, and OR-versus-AND default behavior are all disclosed. It stops short of confirming read-only/side-effect-free status or noting result-count behavior beyond the limit default.

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?

Front-loads the core capability and ranking, then layers matching rules, then filtering, each sentence contributing distinct information. The parenthetical diacritics example earns its place as a concrete illustration, with no filler.

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?

An output schema exists, so return shape and snippet content need not be re-explained, and the description covers the behavioral and semantic knowledge an agent lacks from the bare schema. The only shortfall is the unmentioned limit parameter, which is minor for a search tool with a sensible default.

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 0%, so the description must supply meaning, and it does for four of five parameters: query matching semantics, all_terms (requires every word), folder (includes subfolders), and tag (matches nested tags like project/alpha). The limit parameter is never mentioned, leaving one gap.

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 ("Full-text search over note titles, body text and tags") plus the ranking method, which lets an agent distinguish it from a structured retrieval tool like query_notes. It never names or explicitly contrasts a sibling, so it stops short of a 5.

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?

Gives operational guidance for how matching works (default OR across words, all_terms=true for AND) and how filter parameters narrow results, which implies the right usage contexts. However, it never states when to prefer this over query_notes or read_note, and offers no exclusions or prerequisites.

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