Skip to main content
Glama

vault_search

Read-onlyIdempotent

Search an Obsidian vault for relevant files using full-text, ranked, or recent change modes. Apply filters by type, status, tags, or project to refine results.

Instructions

Search the vault: full-text, ranked, or recent changes.

Default mode: flat full-text search across all vault files. Ranked mode (ranked=True): results scored by relevance. Recent mode (since_days>0): files changed in the last N days. rank_by mode (rank_by != 'bm25'): lessons-only, ranked by usage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNoText to search for (case-insensitive).
max_linesNoMaximum output lines. Default 500.
type_filterNoOnly files whose frontmatter type matches.
status_filterNoOnly files whose frontmatter status matches.
tag_filterNoOnly files that have this frontmatter tag.
use_regexNoTreat query as regex. Default False.
rankedNoScore results by relevance. Default False.
max_resultsNoMax files when ranked. Default 10.
since_daysNoShow recent changes (0 = disabled). Default 0.
projectNoFilter to this project (recent mode only).
scopeNoRestrict search to a scope (e.g. 'work', 'projects'). Empty = all.
rank_byNoLesson ranking ('bm25' default keeps current behaviour; 'reinforcements', 'confidence', 'hybrid' filter to 90-lessons.md only and rank by usage signal).bm25

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations declare readOnly and idempotent, but the description adds detailed behavioral context: how modes affect results, parameter interactions (e.g., ranked=True, since_days>0). This goes beyond the annotations, though it could mention output size limits or error behavior.

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 extremely concise, using only a few sentences to convey the purpose and all four modes. It is front-loaded with the main purpose and structured clearly, with no wasted words.

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 (12 parameters, multiple modes) and the presence of an output schema, the description adequately covers the main modes and their triggers. It could be slightly more complete by addressing parameter interactions or defaults, but overall it is sufficient for an agent to understand usage.

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% with descriptions for each parameter. The description adds value by explaining how parameters like ranked, since_days, and rank_by alter the search mode, which is not evident from individual parameter descriptions alone.

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 the tool searches the vault with specific modes (full-text, ranked, recent changes). It distinguishes from sibling tools like vault_list or vault_query by describing unique modes and functionality, making the purpose very specific.

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?

The description explicitly explains when to use each mode (default, ranked, recent, rank_by), providing clear context. However, it does not directly contrast with sibling tools or state when not to use this tool, missing some guidance on alternatives.

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/mlorentedev/hive'

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