Skip to main content
Glama

Semantic Search

vector_semantic_search
Read-onlyIdempotent

Retrieves related knowledge from a vector database by querying with a question and returns a configurable number of results from a selected collection for RAG workflows.

Instructions

Retrieves and gathers related knowledge from the vector database instance using the question variable.

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": "vector_semantic_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
db_typeNodb type
questionNoquestion
number_resultsNonumber results
collection_nameNocollection name

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv3.3.8
    • removedInput schema / properties / lexical_weight
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "lexical weight"
      -}
    • removedInput schema / properties / rrf_k
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "integer"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "rrf k"
      -}
    • removedInput schema / properties / semantic_weight
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "semantic weight"
      -}
  2. Addedv3.3.0

TDQS

C2.5/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is fully covered elsewhere. The description adds nothing beyond that, saying nothing about similarity ranking, result ordering, whether a missing collection errors or returns empty, or default result counts.

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

Conciseness3/5

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

It is a single front-loaded sentence with no filler, which is structurally fine. The brevity comes at the cost of under-specification rather than efficiency, so it does not earn a higher mark.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained. Still, a four-parameter search tool with zero required parameters and a sibling lexical search needs guidance on which parameters matter and how the modes differ, and the description supplies none of that.

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 reported at 100%, which sets the baseline at 3, and the description does reference the 'question' parameter by name. It adds no meaning for db_type, collection_name, or number_results, though the schema nominally covers them.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a retrieval verb and a resource ('related knowledge from the vector database instance'), so the basic purpose is inferable. However, 'related knowledge' is vague, and it never distinguishes this semantic search from its siblings vector_search and vector_lexical_search, leaving the agent to guess which retrieval mode applies.

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

Usage Guidelines2/5

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

There is no statement of when this tool should be chosen over vector_search, vector_lexical_search, or vector_list_collections. The only hinted usage is 'using the question variable', which describes an input rather than a selection condition.

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