Skip to main content
Glama

Obsidian Search Notes

obsidian_search_notes
Read-only

Searches the notes of an Obsidian vault by text (query: note title and text, case-insensitive), by tag (tag: inline #tags and frontmatter tags; a tag also matches its nested tags), or both. Returns each note's path inside the vault, title, first matching line and tags, sorted by path, limit per page; when has_more is true, pass next_offset as offset for the next page. Reads the Markdown files: Obsidian does not need to be running.

Input Schema

NameRequiredDescriptionDefault
tagNoTag to match, with or without #. Optional when `query` is given.
limitNoNotes per page (default 20, max 100).
queryNoText to find in note titles and text. Optional when `tag` is given.
vaultNoVault name or id from obsidian_list_vaults. Optional when there is only one vault.
offsetNoNotes to skip (default 0): the next_offset of the previous page.

Output Schema

NameRequiredDescriptionDefault
countYes
vaultYes
resultsYes
has_moreYes
next_offsetNo
notes_truncatedNoTrue when the vault has more notes than one search scans.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare a safe read-only operation, and the description adds substantive context beyond them: case-insensitive matching, nested-tag matching, path-sorted results, a limit-per-page model with has_more/next_offset pagination, and the operational note that it reads Markdown files directly so Obsidian need not be running.

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?

Three dense sentences, front-loaded with what is searched and by what criteria. The third sentence restates return fields (path, title, first matching line, tags) that an existing output schema already covers, which is mild redundancy, though it also carries the pagination contract.

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?

For a zero-required-parameter search tool with a 100%-covered schema and an output schema, the definition is nearly complete: matching semantics, pagination, sort order, and the no-Obsidian-required fact are all present. It never clarifies what happens when `vault` is omitted while multiple vaults exist, leaving one ambiguity in an otherwise well-covered definition.

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 the schema carries the field definitions, and the description still adds value: `query` is scoped to titles and text and is case-insensitive, `tag` matches both inline and frontmatter tags including nested ones, and `offset` is explicitly tied to next_offset from the prior page. `vault` is only referenced via the description's mention of obsidian_list_vaults.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource (search an Obsidian vault's notes) and enumerates the two match modes (text in titles/body, tag) plus the combined mode. It stops short of distinguishing itself from nearby siblings such as search_notes, list_notes, or obsidian_read_note, so an agent must infer which search surface to pick.

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

Usage Guidelines3/5

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

Usage is only implied: you search when you need to locate notes, and the parenthetical 'Optional when `query` is given' shows the two modes can combine. There is no explicit guidance on when to prefer this over list_notes, obsidian_read_note, or the generic search_notes, and no stated exclusions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources