Skip to main content
Glama

Semantic Search

search_semantic
Read-onlyIdempotent

Search notes by meaning using natural-language queries. Compares semantic similarity across your vault, deduplicates results, and returns the best-matching note per cluster.

Instructions

Search notes by meaning rather than keywords. Embeds the query with the configured provider, scores every chunk in the persisted index by cosine similarity, and returns the best-matching note per cluster (deduplicated to one hit per note). Run index_vault first to populate the index — this tool does not auto-index because the user should know they're paying the embedding cost. Pair with get_note to retrieve full bodies after picking a hit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesNatural-language description of what you're looking for, e.g. 'notes about onboarding new hires'.
limitNoMaximum number of notes to return (1-100, default: 10).
folderNoRestrict the search to a folder relative to the vault root.
includeSnippetNoIf true (default), include a short snippet of the matching chunk under each hit.
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, informing the agent of safety and idempotency. The description adds valuable context about embedding the query, scoring chunks, and deduplication, which goes beyond the structured annotations.

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 sentences packed with essential information, front-loading the core functionality and including critical usage guidance. No wasted words.

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?

Despite lacking an output schema, the description explains the deduplication behavior and recommends get_note for full bodies. It references prerequisites (index_vault) and sibling tools, providing a complete picture of how this tool fits into the workflow.

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%, so the schema already documents each parameter thoroughly. The description adds overall context but does not provide significant additional meaning for individual parameters beyond what is in the schema.

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?

The description clearly states the tool performs semantic search by meaning, uses embedding and cosine similarity, and deduplicates to one hit per note. It distinguishes itself from sibling tools like index_vault and get_note, making its purpose unambiguous.

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?

Explicitly states that index_vault must be run first to populate the index, clarifies that auto-indexing is not performed due to cost awareness, and recommends pairing with get_note to retrieve full note bodies after selecting a hit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rps321321/obsidian-mcp-pro'

If you have feedback or need assistance with the MCP directory API, please join our Discord server