Skip to main content
Glama

Search notes

search_notes
Read-only

Find notes in an Obsidian vault by title, path, or content, and filter by tags, folder, or vault to locate relevant notes.

Instructions

Search for notes in a vault by title, path and content

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
tagsNoOnly notes with at least one of these tags
limitNoMaximum number of results
queryYesSearch query (an empty string matches every note)
vaultNoVault name. May be omitted when only one vault is configured; see list_vaults.
folderNoOnly notes inside this folder

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv2.0.1
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • changedInput schema / properties / folder / description
      Previous value: -"Filter by folder"New value: +"Only notes inside this folder"
    • addedInput schema / properties / limit / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / limit / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / query / description
      Previous value: -"Search query"New value: +"Search query (an empty string matches every note)"
    • changedInput schema / properties / tags / description
      Previous value: -"Filter by tags"New value: +"Only notes with at least one of these tags"
    • changedInput schema / properties / vault / description
      Previous value: -"Vault name"New value: +"Vault name. May be omitted when only one vault is configured; see list_vaults."
    • changedInput schema / required
      Previous value: -[
      -  "vault",
      -  "query"
      -]New value: +[
      +  "query"
      +]
  2. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. Beyond that the description says nothing about result ordering, pagination, how limit is applied, or what happens when no matches exist — the only added context is which fields are searched.

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?

A single front-loaded sentence with no filler. It is efficient, though its terseness is part of why usage and behavior guidance are thin.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter search tool with no output schema, the definition covers the basics and leans on a fully documented schema. It stops short of describing the shape or ordering of results, which an agent would want before deciding how to page or interpret 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 100%, including notes that an empty query matches every note and that vault may be omitted when only one is configured, so the schema does the heavy lifting. The description contributes one extra fact — that matching spans title, path, and content — which slightly clarifies query semantics but is otherwise redundant.

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 (search) and resource (notes) and scopes it to a vault, adding that matching covers title, path, and content. That is enough to distinguish it from a direct fetch like get_note, though it does not name any 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 Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance. With alternatives like dataview_query, get_related_notes, or get_note_metadata in the catalog, an agent gets no signal about which one to pick or what prerequisites (vault selection, index state) apply.

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