Skip to main content
Glama

search

Read-onlyIdempotent

Find notes and matching lines in an Obsidian vault using native query syntax for words, phrases, regex, tags, properties, tasks, file, path, and content filters.

Instructions

Search the vault with Obsidian's search syntax: words (AND), "exact phrase", OR, -exclude, (groups), /regex/, file:, path:, content:, tag:#x, line:(a b), block:(…), section:(…), task:, task-todo:, task-done:, match-case:, [property], [property:value]. Returns notes with matching lines.

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": "search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (default 50)
queryYes
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
folderNoLimit to this folder (vault-relative)
case_sensitiveNo
include_ignoredNoInclude files in "Excluded files" (Settings → Files & links)
matches_per_fileNoDefault 5

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is fully covered. The description adds only that results are notes with matching lines; it says nothing about pagination, truncation, ordering, or how matches_per_file affects output. Useful context, but not rich behavior beyond the annotations.

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?

Two sentences, front-loaded with the core action and followed by the return shape. The long operator enumeration is dense but each token is functional reference material; it could have been organized as a list for scannability but little is wasted.

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 7-parameter, read-only search tool with no output schema, the definition covers the query grammar and the return unit, and the annotations carry the safety profile. The gap is that vault scoping, folder scoping, and result-limiting behavior are left entirely to schema descriptions, which only partially document them.

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 71%, so the baseline is 3. The description compensates well for the undocumented `query` parameter by enumerating the supported syntax (AND, OR, -, regex, file:, path:, tag:, task:, property filters), which is meaningful added value, but it says nothing about limit, folder, case_sensitive, include_ignored, or matches_per_file beyond what the schema already states.

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?

"Search the vault with Obsidian's search syntax" gives a specific verb and resource, and "Returns notes with matching lines" states the output shape. It implicitly separates itself from siblings like search_text and search_ranked by advertising full query-syntax support, though it never names an alternative.

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 implied rather than stated: the operator list signals this is the general-purpose, syntax-capable search, which is useful context. There is no explicit when-to-use or when-not guidance versus search_by_date, search_by_property, or search_ranked, so an agent must infer the routing decision.

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

Deploy Server

Other Tools