Skip to main content
Glama
emguide

Headless Obsidian MCP

by emguide

search_notes_ranked

Search Obsidian notes by relevance using BM25 ranking, with filters for folder, tags, or frontmatter. Returns top matching notes with scores and snippets.

Instructions

Full-text search ranked by BM25 relevance, optionally scoped by folder, tags, or a frontmatter where filter. Returns the most relevant notes first (title/heading/tag matches boosted) as note headers with score and snippet. Complements search_notes (which is literal/regex, unranked). A positive limit is capped at 100; offset pages past the cap.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoRestrict to notes carrying these tags (leading '#' optional).
limitNoMaximum number of results (default 100; 0 = unbounded; a positive limit is capped at 100).
matchNoSemantics of tags: 'any' (default) or 'all'.
queryYesFree-text query (max 1000 chars). Multi-word queries are ranked by relevance.
whereNoRestrict to notes whose frontmatter satisfies these conditions (query_notes syntax).
folderNoRestrict to notes under this folder.
offsetNoRanked hits to skip, for pagination (default 0).
Behavior4/5

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

With no annotations, the description carries full burden. It discloses the ranking algorithm, result format (headers with score and snippet), boost for title/heading/tag matches, and pagination cap. It does not explicitly state read-only nature or error conditions, but for a search tool this is adequate.

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?

The description is three well-structured sentences. First sentence gives core purpose and scoping, second explains results and boosting, third contrasts with sibling and adds cap detail. Every sentence earns its place without redundancy.

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?

Given the complexity (7 parameters, no output schema, no annotations), the description covers the main behavioral aspects: ranking, scoping, result structure, and pagination. It lacks explicit details on error handling or the exact return format fields, but overall is sufficient for selecting and using the tool.

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 baseline is 3. The description adds meaningful context beyond schema by mentioning 'title/heading/tag matches boosted' (ranking behavior) and 'offset pages past the cap' (pagination nuance). This extra information justifies a 4.

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 performs 'full-text search ranked by BM25 relevance' and lists scoping options. It distinguishes itself from the sibling 'search_notes' by contrasting relevance ranking vs literal/regex unranked 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?

The description explicitly says 'Complements search_notes (which is literal/regex, unranked),' guiding when to use this tool vs the alternative. It also notes the positive limit cap at 100 and offset pagination, providing clear usage boundaries.

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/emguide/headless-obsidian-mcp'

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