Skip to main content
Glama
Obsidian CDP MCP Server

Obsidian CDP MCP Server

obsidian_rag_analytics

Retrieves RAG search analytics to monitor query quality, spot low-performing searches, and find synonym suggestions. Use it to track trends and improve vault search results.

Instructions

Get RAG search analytics data for monitoring and optimization.

Returns:

  • Search quality metrics (avg click rank, no-click rate, first-click rate)

  • Weekly trends for tracking improvement over time

  • Synonym suggestions based on user behavior

  • Low-performing queries that need optimization

Use this to:

  • Monitor search effectiveness

  • Discover missing synonyms

  • Identify queries that need improvement

Requires obsidian-long plugin with ragModule to be installed and enabled.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "obsidian_rag_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoNumber of days to analyze (default: 7)
formatNoOutput format: 'full' (all data), 'report' (markdown report), 'suggestions' (synonym suggestions only). Default: 'full'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.9.2

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden: it discloses the plugin/ragModule dependency and the shape of returned data, which is genuinely useful. However, it never states that the operation is read-only, says nothing about cost or latency of an analytics aggregation, and gives no behavior for the empty-data or plugin-missing case.

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?

Front-loaded purpose sentence followed by well-separated 'Returns' and 'Use this to' blocks, with the prerequisite last. There is mild redundancy between the returns list and the use-case bullets, but the structure is easy to scan.

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?

For a 2-optional-parameter read tool with no output schema, the description covers purpose, return contents, usage, and the environment prerequisite. Only the read-only nature and failure behavior when the ragModule is missing are left unstated.

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%, with both parameters fully described, including the enum values for 'format', so the schema already does this work. The description adds no syntax, default, or interaction detail beyond what the schema 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 and resource ('Get RAG search analytics data') and enumerates what the data contains (quality metrics, weekly trends, synonym suggestions, low-performing queries). It is clearly distinct from a search tool like obsidian_rag_search, though it never names an alternative explicitly.

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

Usage Guidelines4/5

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

Provides an explicit 'Use this to' list covering monitoring, synonym discovery, and query optimization, plus a stated prerequisite (obsidian-long plugin with ragModule enabled). It lacks a when-not statement or a pointer to a sibling when the plugin is absent, so it falls short of full routing guidance.

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