Skip to main content
Glama

Shard Connector for Obsidian

Search notes

search_notes
Read-only

Find notes in the Obsidian vault whose name or folder path contains the query, case-insensitively. Set content to search .md, .canvas and .base notes by path and contents instead; each result then lists up to 3 matching lines with line numbers, at most 50 notes are returned, and other files are left out. Files under the vault-root Trash/ folder are left out unless include_trash is set.

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_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYescase-insensitive text to match against note paths, and contents when content is set
contentNoalso search inside .md, .canvas and .base notes and return matching lines; default false
include_trashNoalso return files under the vault-root Trash/ folder; default false

Output Schema

NameRequiredDescriptionDefault
filesNovault-relative paths of matching files, when content is false
resultsNo.md, .canvas and .base notes matching by path or contents, when content is true
truncatedNomore notes matched than the 50 returned

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, closed-world, so the description correctly spends its words on behavior beyond them: a hard cap of 50 notes, up to 3 matching lines per result for content mode, exclusion of non-.md/.canvas/.base files, and Trash exclusion by default. The main gap is result ordering/relevance and what happens when the 50-note cap silently truncates.

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 sentences, front-loaded with the core behavior, with no filler. The second sentence is long and mixes invocation guidance with return-shape details that the output schema already covers, which costs a bit of scannability.

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?

For a 3-parameter read-only search with an output schema present, the definition covers query semantics, file-type scope, trash handling, and result caps. An agent can call it correctly and predict the shape of results from this text alone.

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%, so the schema already explains query, content and include_trash including defaults. The description reinforces the semantics of content and include_trash but adds no format or syntax details beyond the schema, so baseline 3 applies.

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?

States a specific verb and resource ('Find notes in the Obsidian vault') plus the exact matching rule (name or folder path, case-insensitive). It also carves out the distinct content-search mode, so the agent can distinguish path-name search from content search without opening another schema.

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?

Gives clear conditions for the two optional behaviors: set content to search by path and contents, set include_trash to reach Trash/. It does not name any sibling tool as an alternative (e.g. read_note for retrieving a specific note), so it stops short of full when/when-not routing, but the in-tool variants are explicit.

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