Skip to main content
Glama
Obsidian MCP Server
by Kynlos

search_regex

Search notes with regular expression patterns to find matching content in an Obsidian vault; enable case-sensitive matching when needed.

Instructions

Search notes using regular expressions

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": {
      "pattern": "<pattern>"
    },
    "name": "search_regex"
  }
}

Input Schema

NameRequiredDescriptionDefault
patternYesRegular expression pattern
case_sensitiveNoCase sensitive search (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it says nothing about regex flavor/syntax support, whether matches span the whole note or return snippets, result limits, or performance risks such as catastrophic backtracking. For a tool whose behavior depends heavily on regex engine semantics, this is a significant gap.

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 short sentence with no filler or redundancy, and the key concept (regex over notes) is front-loaded. Its brevity borders on under-specification rather than wordiness, so it is efficient but thin.

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

Completeness2/5

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

The tool is simple (two parameters, no output schema, no annotations), yet the description still omits what is searched, what is returned, and any regex dialect constraints. Those omissions are exactly the things an agent needs to call this correctly, and the description supplies none of 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 description coverage is 100% for both parameters, so the schema already documents pattern and case_sensitive including its default. The description adds no additional meaning such as anchoring behavior, multiline handling, or whether case_sensitive applies to note titles as well as content, leaving it at the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a verb (search) and a resource (notes) plus the mechanism (regular expressions), so the basic function is legible. However, "notes" is ambiguous about what is actually matched (note body, title, or path), and nothing distinguishes it from sibling tools like search_notes or regex_search_and_replace.

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 guidance about when to prefer regex search over the plain search_notes sibling, or when to use regex_search_and_replace instead of a read-only search. The agent must infer the choice from tool names alone.

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