Skip to main content
Glama
obsidian-mcp

obsidian-mcp

by LWaetzig

Search Notes

obsidian_search_notes
Read-onlyIdempotent

Searches note bodies and frontmatter in the Obsidian vault with case-insensitive matching, returning paginated excerpts with file paths and line numbers so you can locate content quickly.

Instructions

Full-text search across all notes in the vault.

Case-insensitive substring match over note bodies and frontmatter. Returns matching excerpts with up to one line of surrounding context.

Args:

  • query (string): Search string (case-insensitive, minimum 1 character)

  • limit (number): Max results per page, 1–100 (default: 20)

  • offset (number): Pagination offset (default: 0)

  • response_format: 'markdown' | 'json' (default: 'markdown')

Returns: Paginated list of matches — file path, line number, and context excerpt.

Examples:

  • Find meeting notes about Q2: query="Q2 meeting"

  • Find all TODO items: query="- [ ]"

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "obsidian_search_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (1–100, default 20)
queryYesSearch string
offsetNoNumber of results to skip for pagination (default 0)
response_formatNoOutput format: 'markdown' for human-readable, 'json' for machine-readablemarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description still contributes meaningfully beyond that: it discloses the match algorithm (case-insensitive substring, not fuzzy or regex), the excerpt shape (up to one line of surrounding context), and pagination via limit/offset. What it omits is result ordering and behavior on very large vaults.

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?

Purpose and matching semantics are front-loaded, then Returns and Examples in a predictable order. The Args section duplicates information already fully present in the schema, which is wasted verbiage for an agent that receives both, but overall the definition is short and free of filler.

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?

There is no output schema, so the 'Returns: Paginated list of matches — file path, line number, and context excerpt' line is necessary and sufficient to describe output. Match semantics, pagination, and format selection are all covered. Remaining gap is the ranking/ordering of results, which matters for a paginated search.

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 description coverage is 100%, and the Args block restates the schema almost verbatim (limit 1-100 default 20, offset default 0, response_format enum, query min 1 char). The only genuine addition is the example '- [ ]' revealing that query is matched literally rather than parsed. Adequate but largely duplicative, so the baseline 3 applies.

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 opening line names a specific verb and scope: 'Full-text search across all notes in the vault,' and follows with the exact matching mechanism (case-insensitive substring over note bodies and frontmatter). That mechanism implicitly separates it from a tag-oriented sibling such as obsidian_search_by_tag, but no sibling is named explicitly, so an agent must infer the boundary.

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 shown only by two examples ('Q2 meeting', '- [ ]'), which imply literal substring matching and demonstrate a TODO-finding pattern. There is no explicit statement of when to prefer this tool over tag search or metadata search, and no exclusions such as 'does not support regex or boolean operators.'

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