Skip to main content
Glama

Hybrid search (BM25 + TF-IDF + embeddings, RRF-fused)

obsidian_search
Read-onlyIdempotent

Searches Obsidian vault with hybrid retrieval fusing BM25, TF-IDF, and embeddings via Reciprocal Rank Fusion for high recall, returning per-signal scores and optional folder/frontmatter filters.

Instructions

The default search tool for v2.0. Auto-detects every available retrieval signal — BM25 via FTS5 (if --persistent-index), TF-IDF cosine (always), and ML embeddings (if enquire-mcp build-embeddings ran) — and fuses them with Reciprocal Rank Fusion (Cormack et al, 2009) for higher recall and better paraphrase / synonym matching than any single ranker. Equal weights, k=60. Gracefully degrades: with only TF-IDF available it produces TF-IDF-style ranking; with BM25+TF-IDF it does keyword-augmented retrieval; with all 3 it matches Smart Connections-quality retrieval — free / offline / open-source. Returns per-signal observability (per_signal: { bm25, tfidf, embeddings }) so you can see WHY each hit ranked. v2.8.0: when --include-pdfs was passed to serve (or enquire-mcp index --include-pdfs ran), PDF chunks are blended into results — each hit carries a kind: "md" | "pdf" flag and PDF chunks include [page: N] markers in snippets so agents can cite the right page. Use this instead of the individual _search_text / _full_text_search / _semantic_search / _embeddings_search tools unless you specifically need single-ranker output for diagnostics. v3.10 (forgetting-aware): every hit also carries age_days (whole days since the note was last edited, from its live mtime) and a stale boolean (true past ~1 year) — use these to flag a recalled fact as possibly out-of-date instead of stating it as current. Ranking stays relevance-driven by default; if the server was started with --recency-weight, fresher notes are blended upward.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax hits (default 10)
queryYesFree-form query — multi-word natural language is the sweet spot
folderNoRestrict to a subfolder (vault-relative)
granularityNov2.2.0: 'note' (default) returns one hit per note (best chunk wins). 'block' keeps each chunk as a distinct hit — useful when one note covers a topic in multiple paragraphs and you want the LLM to see all of them.
graph_boostNov2.3.0: post-RRF wikilink graph-boost — rerank top-K by counting how many OTHER top-K hits link to each one. Default ON. Set false to disable for diagnostic comparison. The 'only enquire-mcp does this' feature: generic vector stores can't do this without an Obsidian-aware layer.
min_signalsNoFilter: only return hits that appeared in at least this many ranker signals. Default 1 (any). Set to 2+ for high-precision multi-ranker consensus.
embedding_modelNoOverride the embedding model alias (default 'multilingual'). Only consulted if a .embed.db exists.
filter_frontmatterNov3.10: optional YAML-frontmatter filter — a {key: value} map. A hit is kept only if its note's frontmatter satisfies EVERY pair (AND across keys). Per key: strings match case-insensitively, an array frontmatter value matches by membership (e.g. {tags: 'project'} matches `tags: [project, x]`), and the filter value may itself be an array for OR ({type: ['meeting','decision']}). Notes with no frontmatter or missing a filtered key are excluded. Omit for no filtering (default). Filters the fused candidate pool, so a strict filter can return fewer than `limit` hits.
Behavior5/5

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

Annotations provide readOnlyHint and idempotentHint. Description adds extensive behavioral details: auto-detection of signals, degradation paths, RRF fusion with k=60, per-signal observability, PDF inclusion with kind flag, forgetting-awareness (age_days, stale), recency-weight option, graph_boost, and filter_frontmatter. No contradictions.

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?

Well-structured with bold headings and version markers. Front-loaded with main purpose. However, somewhat verbose with version history details (v2.2.0, v2.3.0, v2.8.0, v3.10) that could be summarized more concisely for an AI agent.

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?

Comprehensive for a complex tool with 8 parameters, no output schema. Covers retrieval behavior, degradation, observability, graph boost, filtering, forgetting-awareness. Explains return format elements like per_signal, kind, age_days, stale. All necessary context for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with descriptions, but description adds significant value: explains default for limit, granularity usage ('block' vs 'note'), graph_boost's unique feature, min_signals for precision, filter_frontmatter with AND logic and array membership. Goes far beyond schema definitions.

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?

The description clearly states it is 'The default search tool for v2.0' performing hybrid retrieval (BM25, TF-IDF, embeddings). It distinguishes itself from sibling tools like individual _search tools by being the recommended unified search.

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

Usage Guidelines5/5

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

Explicitly says 'Use this instead of the individual _search_text / _full_text_search / _semantic_search / _embeddings_search tools unless you specifically need single-ranker output for diagnostics.' Also discusses graceful degradation and when to use specific parameters like folder and granularity.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/oomkapwn/enquire-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server