Skip to main content
Glama
Obsidian CDP MCP Server

Obsidian CDP MCP Server

obsidian_rag_search

Search notes by meaning rather than exact keywords to find concepts, cross-language content, or vague memories in an Obsidian vault.

Instructions

Semantic search for finding notes by meaning, not exact keywords.

WHEN TO USE:

  • Concept/idea search: "DNS 解析原理", "容器网络排障经验"

  • Cross-language: Chinese query finds English content

  • Vague memory: "之前遇到的超时问题"

WHEN NOT TO USE:

  • Finding specific file by name → use obsidian_search

  • Single generic term (e.g., "kubernetes", "网络") → ASK USER first

QUERY GUIDELINES:

  • Good: "CoreDNS 解析失败排查" (specific problem)

  • Bad: "DNS" (too broad, ask user to clarify)

  • Rule: If query < 4 characters or is a single common term, clarify first

RESPONSE FORMAT:

  • score: 0-100, higher = more relevant (>70 usually reliable)

  • path: file path in vault

  • title: note title

  • tags: optional, note tags

Returns top 5 results by default. Use limit parameter to adjust.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results (default: 5)
queryYesSearch query for semantic search

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.9.2

TDQS

A4.4/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 it does much of that work: it documents the return fields, the 0-100 score scale with a practical reliability threshold (>70), and the default result count of 5. It does not disclose operational traits such as whether an embedding index must exist, latency/cost of semantic search, or whether results reflect a stale index, which keeps it short of a 5.

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?

Well front-loaded with labeled sections and no filler prose; the good/bad query examples are immediately actionable. Slightly redundant, since the broad-query rule is stated once as an exclusion under WHEN NOT TO USE and again under QUERY GUIDELINES, costing a small amount of tightness.

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 two-parameter read tool with no annotations and no output schema, the definition supplies purpose, routing, query constraints, and the full response shape with score interpretation. Nothing an agent needs in order to call it correctly or interpret the results is missing.

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%, so both parameters are already documented; the description reinforces the limit default and adds a query-quality heuristic (reject queries under 4 characters or single generic terms) that is genuine meaning beyond the schema. However, it adds no syntax or format detail for the query string itself, so the baseline 3 holds.

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 ('Semantic search for finding notes by meaning, not exact keywords') and explicitly contrasts with exact-keyword behavior, which is precisely what distinguishes it from the obsidian_search sibling. An agent can pick between the two 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?

Gives explicit WHEN TO USE categories with concrete example queries, an explicit WHEN NOT TO USE section that routes filename lookups to obsidian_search, and a clarification rule for overly broad queries. It even names the fallback behavior (ask the user) rather than leaving it to inference.

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