Skip to main content
Glama
Obsidian CDP MCP Server

Obsidian CDP MCP Server

obsidian_search

Find files by exact filename or path pattern using case-insensitive substring matching, with optional folder scope and result limits to locate known notes quickly.

Instructions

Search for files by path/name. Fast, exact matching.

WHEN TO USE:

  • Know exact file name: "DNS 解析.md", "202312 工单"

  • Find by path pattern: "1_projects/", "4_archives/2024"

  • Filename contains keywords: "CoreDNS", "排障记录"

WHEN NOT TO USE:

  • Search by concept/meaning → use obsidian_rag_search

  • Vague memory ("那个DNS问题") → use obsidian_rag_search

MATCHING:

  • Case-insensitive substring match on full path

  • "dns" matches "DNS解析.md", "1_projects/dns-debug/notes.md"

Returns up to 20 files by default. Use path parameter to narrow scope.

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

Input Schema

NameRequiredDescriptionDefault
pathNoLimit search to files under this folder path (optional)
limitNoMaximum number of results (default: 20)
queryYesSearch query (matches file path)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.9.2

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the matching engine (case-insensitive substring over the full path) with a worked example, plus the result cap of 20. It leaves out result ordering, whether hidden or excluded folders are searched, and whether pagination exists beyond the limit cap.

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?

Headers make the decision logic scannable and the purpose is front-loaded in one line. A few lines are redundant with the schema, notably "Returns up to 20 files by default" and "Use path parameter to narrow scope", both of which restate documented parameter defaults.

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?

No output schema exists, and the description only says how many files come back, not what each result contains (bare path vs. path plus metadata). For a three-parameter read tool the decision guidance and matching semantics are otherwise sufficient to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning for `query` by showing what substring matching actually matches ("dns" → "DNS解析.md", "1_projects/dns-debug/notes.md") and reiterates that `path` narrows scope. The `limit` parameter only repeats the schema default.

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?

"Search for files by path/name" gives a specific verb and resource, and the opening line plus the WHEN NOT TO USE section explicitly separates it from obsidian_rag_search. An agent can pick between the two literal-vs-semantic searchers without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Both directions are stated: WHEN TO USE lists three concrete trigger cases with example queries, and WHEN NOT TO USE routes conceptual or vague-memory lookups to obsidian_rag_search. This is the explicit when/when-not/alternative pattern.

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