Skip to main content
Glama

Search Notes

search_notes
Read-onlyIdempotent

Search full text across Obsidian vault notes. Returns matching note paths with line numbers and snippet content for each hit. Use to find notes containing a phrase, keyword, or code fragment.

Instructions

Full-text search across all notes in the vault. Returns matching note paths grouped with the line numbers and snippet content of each hit. Use to locate notes containing a phrase, keyword, or code fragment; pair with get_note to retrieve full bodies.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesLiteral search string matched against note body text (not regex)
caseSensitiveNoIf true, match case exactly; otherwise case-insensitive (default: false)
maxResultsNoMaximum number of matching notes to return (1-500, default: 20)
folderNoRestrict search to this folder relative to the vault root (omit to search entire vault)
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint true. The description adds that the search is across the entire vault and returns grouped results with snippets, providing context beyond what annotations convey. 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences long, front-loaded with purpose and key details. Every sentence adds value; 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?

No output schema exists, but the description explains the return structure (paths, line numbers, snippets). It also references related tool get_note. With well-documented parameters in schema, the description is reasonably complete for a search tool.

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 coverage is 100% with each parameter having a description. The tool description does not add significant new meaning beyond the schema, so baseline 3 is appropriate.

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 performs full-text search across all notes and returns paths with line numbers and snippets. It distinguishes from siblings like search_by_frontmatter and search_by_tag by focus on full-text content.

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 says when to use the tool (to locate notes containing a phrase, keyword, or code fragment) and suggests pairing with get_note for full bodies. It implicitly differentiates from other search tools, though no explicit 'when not to use' is given.

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/rps321321/obsidian-mcp-pro'

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