Skip to main content
Glama

search_ranked

Read-onlyIdempotent

Search an Obsidian vault by relevance to find notes about a topic; BM25 ranking weights titles more and handles Chinese, Japanese, and Korean with character bigrams.

Instructions

Relevance-ranked full-text search (BM25; titles weigh more; Chinese/Japanese/Korean handled with character bigrams). Best for "find notes about X".

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (default 20)
queryYes
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
folderNoLimit to this folder (vault-relative)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely non-structured behavioral context: ranking is BM25-based, titles are weighted more heavily, and CJK text is tokenized via character bigrams — all of which affect result ordering. It stops short of describing pagination or the shape of returned hits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with no filler, and the core definition with its ranking characteristics is front-loaded before the use-case hint. Nothing is repeated from the schema or annotations.

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 read-only, four-parameter search tool with no output schema, the definition covers what the tool does and how results are ordered, which is the main uncertainty an agent faces. Minor gaps remain around result shape and whether results are paginated beyond the limit cap.

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 75%: limit, vault, and folder are each documented inline, including defaults and the vault fallback chain. The description adds no parameter-level detail of its own, so the schema does the work and a baseline 3 applies; only the undocumented query field is left to obvious inference.

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?

Names a specific operation and resource ("Relevance-ranked full-text search") and adds a distinguishing mechanic (BM25, title weighting, CJK bigrams) that separates it from a plain substring search. It does not explicitly name siblings such as search, search_text, or search_by_date, so the differentiation is implied rather than stated.

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

Usage Guidelines3/5

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

The phrase "Best for 'find notes about X'" gives a usable situational cue for choosing this tool. However, it offers no exclusions (e.g., when to prefer exact-match or date/property-based search) and names no alternative, leaving the agent to infer routing from sibling 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