Skip to main content
Glama
lemuelflores

mcp-semantic-search

by lemuelflores

search

Search indexed markdown specs semantically to retrieve relevant chunks. Filter by file, section, or chunk type for precise results.

Instructions

Semantic search over indexed specs in app. Returns relevant markdown chunks ranked by similarity. Optionally filter by file, section heading, or chunk type.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNoFilter results to a specific file (e.g. 'auth-v2.md'). Matches if the filename contains this string, so partial names work.
limitNoMax results (default 5)
queryYesNatural language search query
sectionNoFilter to chunks under a specific heading/section. Case-insensitive substring match against all heading levels (h1–h4). Example: 'authentication' matches chunks under '## Authentication Flow'.
min_scoreNoMinimum cosine similarity 0-1. Overrides the MIN_SCORE env var (default 0.44). Lower for rough search, higher for precise matches. Scores are model-relative: with the default embedding model, on-topic chunks land around 0.45-0.80 and unrelated ones below 0.45.
chunk_typeNoFilter by chunk type: 'content', 'code', 'table', or 'toc'. Use 'toc' to retrieve a document's structure map.
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explains the search and ranking behavior and provides scoring details via the min_score parameter. However, it does not mention aspects like rate limits, auth requirements, or no-result handling. It adds value beyond schema but not enough for a higher score.

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?

The description is a single, well-structured sentence that leads with the main action ('Semantic search over indexed specs'), then details return type and optional filters. Every part earns its place with zero waste.

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?

Given the tool's simplicity and 100% schema coverage, the description adequately covers the search functionality and return type. No output schema exists, but the description notes 'returns relevant markdown chunks ranked by similarity', which is sufficient. Minor gap: no mention of pagination, but acceptable for a search tool.

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 baseline is 3. The description adds minimal extra context beyond the schema, which already thoroughly explains parameters like min_score with cosine similarity and section filtering. The description's mention of 'optional filters' is redundant with 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 over indexed specs, returning relevant markdown chunks ranked by similarity. It distinguishes from siblings implicitly as 'index' is for indexing and 'status' for checking status, but the purpose is very specific and action-oriented.

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 description mentions optional filters (file, section, chunk type) which guide usage but does not explicitly discuss when to use this tool versus its siblings (index, status) or provide exclusion criteria. The usage context is clear but lacks formal guidance.

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/lemuelflores/spec-search-mcp'

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