Skip to main content
Glama
obsidian-memory-mcp

obsidian-memory-mcp

by BoiDG

search_memory

Search Obsidian vault memory using hybrid keyword and semantic ranking; filter by doc type, section, or scope to return context-budgeted chunks.

Instructions

Hybrid RRF search (SQLite FTS5 BM25 + offline ONNX embeddings) with doc-type authority and recency ranking.

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_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax chunks to return (1-15).
queryYesSearch query (exact code symbols, migrations, IDs, or conceptual questions).
scopeNoOptional scope filter to narrow search.
sectionNoOptional heading filter, e.g. 'Decisions', 'Architecture', 'Next actions'.
doc_typeNoOptional type filter: 'kb', 'task', 'index', 'handoff', 'wiki', 'note'.
max_charsNoStrict character budget (default 6000).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it never confirms this is a read-only operation, nor does it describe result ordering behavior in practical terms, index staleness, or whether a reindex is needed. It does reveal the ranking internals (RRF fusion, doc-type authority, recency boost), which is a small amount of genuine 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?

A single compact sentence with no filler and no redundancy, front-loaded with the core mechanism. It is efficient, though the density of unexpanded jargon (RRF, BM25, ONNX) trades clarity for brevity.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With six parameters, no annotations, and several overlapping sibling retrieval tools, a one-line mechanism summary is not enough. The output schema relieves it of explaining return values, but it should still say what corpus is searched, whether results span scopes, and when to prefer it over direct-fetch siblings.

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 100%, so every parameter, including limit, scope, section, doc_type, and max_chars, is already documented with defaults and bounds. The description adds nothing about parameter behavior; baseline 3 applies since the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a retrieval mechanism (hybrid RRF over FTS5 BM25 plus ONNX embeddings) and mentions ranking signals, which conveys that this is a ranked search tool. However, it never states in plain terms what corpus is being searched (notes, KB docs, tasks) or how it differs from siblings like get_note_section or get_latest_handoff; the reader must infer the resource from the tool name alone.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives. With siblings such as get_note_section, get_linked_context, and list_scopes_and_tasks in the catalog, an agent gets no signal about when a ranked hybrid search is preferable to a direct section fetch.

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