Skip to main content
Glama

Search notes

search_notes

Search all Markdown notes in an Obsidian vault to find matching text with file paths and line numbers. Filter by folder, case sensitivity, or result limit to locate content quickly.

Instructions

Full-text search across all markdown notes in the vault, from the filesystem for speed. Returns matching lines with file paths and line numbers.

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
caseNoCase-sensitive matching. Default false.
pathNoRestrict the search to this folder.
limitNoMaximum number of matches. Default 50.
queryYesText to search for.
contextNoLines of context to show around each match. Default 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry behavioral disclosure. It does add real value by saying the search runs from the filesystem for speed (suggesting index-free reads of on-disk content) and by describing the return shape, but it omits whether it reads only file bodies vs. filenames, whether unsaved editor state is excluded, and any performance or result-cap behavior beyond the schema defaults.

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?

Two sentences, zero filler. The core action and scope come first, with the sourcing mechanism and return format following immediately.

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?

With no output schema, the description usefully explains what comes back (matching lines, file paths, line numbers), which covers the main unknown. It is close to complete for a simple read-only search tool; the only shortfall is the absence of annotations, so safety and edge-case behavior are left implicit rather than stated.

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% with all five parameters documented (query, path, limit, context, case), so the baseline is 3. The description adds no extra meaning about filtering, case handling, or context lines 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?

States a specific verb (full-text search) and resource (all markdown notes in the vault), plus the mechanism (filesystem, for speed) and return shape (matching lines with file paths and line numbers). It implicitly separates itself from read_note/list_notes by being a cross-vault text match rather than a whole-note read, though it never names a sibling explicitly.

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: an agent can infer 'use this to find text across the vault,' but there is no when-to-use/when-not guidance and no pointer to alternatives such as list_notes for enumeration or read_note once a path is found. No prerequisites or scope caveats (e.g., attachments/non-markdown files) are stated.

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