Skip to main content
Glama
obsidian-mcp-server

obsidian-mcp-server

by mpesavento

Search Vault (Unified)

vault_search

Search an Obsidian vault with semantic vector or BM25 keyword matching, and filter results by zone to find notes by concept, exact term, or filename.

Instructions

Search vault with multiple modes. 'vector' (default) = semantic similarity via embeddings, best for conceptual queries. 'keyword' = BM25 text matching, best for exact terms/names. Zones filter results to specific vault areas:

  • meta: 00-meta/ (agent protocols, conventions)

  • identity: 10-identity/ (Mike's identity, values)

  • people: 15-people/ (entity files for people)

  • context: 20-context/ (projects, platforms)

  • knowledge: 30-knowledge/ (reusable knowledge artifacts)

  • playbooks: 35-playbooks/ (operational runbooks, how-to guides)

  • queues: 50-queues/ (task queues)

  • daily: 60-daily/ (daily notes)

  • introspection: 70-introspection/ (insights, patterns)

  • archive: 90-archive/ (completed/inactive items)

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

Input Schema

NameRequiredDescriptionDefault
modeNoSearch mode: 'vector' (semantic similarity, default), 'keyword' (BM25 exact matching)vector
zoneNoFilter results to a specific vault zone
queryYesSearch query
max_resultsNoMaximum number of results to return
search_filenamesNoAlso search file paths/names (keyword mode only). Finds files where query matches the filename even if not in content.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden of disclosure. "Search" strongly implies a read-only operation and the description implies max_results is bounded to a count, but it never confirms safety, doesn't describe the result payload (paths, snippets, scores), and says nothing about performance or limits. The zone-to-directory mapping is the main added behavioral context.

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?

Front-loads the mode distinction, then presents zones as a scannable list, so the reader gets the decision-relevant content first. Some wording duplicates the input schema (mode defaults and meanings), and the ten-line zone block is long, but each entry carries information the schema lacks.

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?

For a five-parameter search tool with no annotations and no output schema, the description never says what a result looks like or in what order results return, which an agent needs to consume the output. It does fully cover mode and zone choices, so the gap is in return-value framing rather than invocation.

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 real meaning: it maps each of the ten zone enum values to the directory it covers, which the schema only labels generically as "a specific vault zone." It also reinforces the semantic split between the two mode values beyond the schema's short enum descriptions.

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 ("Search vault") and immediately enumerates its two modes, so the agent understands the tool's shape. It does not differentiate itself from the sibling vault_grep, which plausibly overlaps with keyword search, leaving that routing decision to inference.

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?

Explicitly says which mode to pick and when: vector for conceptual queries, keyword for exact terms/names. It also tells the agent what each zone filters to. It gives no guidance on when to prefer this over vault_grep or vault_list, and offers no exclusions.

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