Skip to main content
Glama
digster

obsidian-cli-mcp

by digster

search_vault

Search an Obsidian vault for text, returning matching files with optional context lines, folder limits, and case-sensitive matching.

Instructions

Search the vault for text and return matching files (JSON).

Set context=True to also get the matching lines around each hit, path to limit to a folder, limit to cap results, and case=True for case-sensitive matching.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
pathNo
limitNo
contextNo
caseNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description takes on the full burden. It explains key behaviors: returns matching files as JSON, context lines with context=True, folder filtering with path, result limit with limit, and case-sensitive matching with case=True. It omits details about error handling or default behavior but covers primary functionality.

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 two sentences: first states the core purpose, second lists parameter settings. It is concise, front-loaded, and contains no unnecessary words.

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?

Given the tool complexity (5 params, 1 required) and presence of an output schema, the description covers all user-facing behavior. It explains every parameter and the return format. No critical gaps are evident.

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 0%, so the description must explain all parameters. It does so effectively: query is implied as the search text; context, path, limit, and case are each described with their effects. This adds meaning beyond the schema's type and default values.

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 'Search the vault for text and return matching files (JSON)', which identifies the action (search), resource (vault), and output format (JSON). It distinguishes from sibling tools like list_files by specifying search functionality.

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?

The description does not provide guidance on when to use this tool versus alternatives. It explains parameters but lacks explicit 'when to use' or 'when not to use' context relative to sibling tools.

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/digster/obsidian-cli-mcp'

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