Skip to main content
Glama

Fused Search

vector_search
Read-onlyIdempotent

Combines semantic and lexical retrieval with bounded reciprocal rank fusion to return relevant passages for RAG and agent queries.

Instructions

Performs bounded RRF fusion over semantic and lexical retrieval.

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

Input Schema

NameRequiredDescriptionDefault
rrf_kNorrf k
db_typeNodb type
questionNoquestion
lexical_weightNolexical weight
number_resultsNonumber results
collection_nameNocollection name
semantic_weightNosemantic weight

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv3.3.0
    • removedInput schema / properties / action
      Removed value: -{
      -  "description": "Action to perform. Must be one of: 'semantic_search', 'lexical_search', 'search'",
      -  "type": "string"
      -}
    • removedInput schema / properties / bm25_weight
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "bm25 weight"
      -}
    • removedInput schema / properties / db_name
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "db name"
      -}
    • removedInput schema / properties / db_path
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "db path"
      -}
    • removedInput schema / properties / host
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "host"
      -}
    • addedInput schema / properties / lexical_weight
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "lexical weight"
      +}
    • removedInput schema / properties / password
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "password"
      -}
    • removedInput schema / properties / port
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "port"
      -}
    • removedInput schema / properties / username
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "username"
      -}
    • removedInput schema / required
      Removed value: -[
      -  "action"
      -]
  2. First observedv1.39.0

TDQS

C2.5/5.0
Behavior2/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is fully covered without the description. The description adds almost nothing beyond that: 'bounded' is never defined (bounded how — result count, weight range, fusion depth?), and there is no mention of how weights interact or what the default behavior is when all seven optional params are omitted.

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?

One short, front-loaded sentence with no filler — structurally clean. But brevity here comes from under-specification rather than discipline; the single sentence is spent largely on unexplained acronyms.

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?

Seven optional parameters, an output schema (so returns need no explanation), and a hybrid-retrieval role that is inherently harder to select than the single-mode siblings. Against that complexity, one jargon sentence is inadequate — the agent has no basis for choosing this tool or for setting the two weight parameters.

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 per the baseline the schema is nominally carrying parameter documentation and a 3 applies. However, the schema's descriptions are pure restatements ('rrf k', 'lexical weight', 'db type'), and the description does not compensate by explaining the lexical_weight/semantic_weight tradeoff or the meaning of rrf_k, leaving genuinely ambiguous controls unclarified.

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 verb+resource ('RRF fusion over semantic and lexical retrieval') does signal that this merges two retrieval modes, which distinguishes it from the sibling single-mode searches. But 'RRF' and 'bounded' are unexplained jargon, so an agent cannot tell in plain terms what the tool returns or how it differs operationally from vector_semantic_search or vector_lexical_search.

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 when-to-use guidance at all — no statement that this should be preferred over the semantic-only or lexical-only siblings when both signals matter, and no exclusions. The agent must infer the routing decision from the word 'fusion' alone.

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