Skip to main content
Glama
grafeo-mcp

grafeo-mcp

Official
by GrafeoDB

vector_search

Read-only

Finds the nearest nodes to a query vector or to a given node's stored embedding in a vector index. Returns closest matches first for similarity search without an embedding model.

Instructions

Find the k nodes nearest to query_vector, or to node like_node_id, in a vector index.

Without an embedding model, use like_node_id ("what is most like this node?"). Nearest first.

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": {
      "label": "<label>",
      "property": "<property>"
    },
    "name": "vector_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
kNoNumber of results.
efNoHNSW search width; higher finds more, slower.
labelYes
propertyYesThe property that holds the embeddings, e.g. "embedding".
like_node_idNoSearch near this node's stored vector; the node itself is left out.
query_vectorNoThe query embedding (the index's model and size), or use like_node_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changedv0.3.0
    • removedInput schema / properties / ef / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / ef / default
      Removed value: -null
    • addedInput schema / properties / ef / description
      Added value: +"HNSW search width; higher finds more, slower."
    • removedInput schema / properties / ef / title
      Removed value: -"Ef"
    • addedInput schema / properties / ef / type
      Added value: +"integer"
    • addedInput schema / properties / k / description
      Added value: +"Number of results."
    • removedInput schema / properties / k / title
      Removed value: -"K"
    • removedInput schema / properties / label / title
      Removed value: -"Label"
    • addedInput schema / properties / like_node_id
      Added value: +{
      +  "description": "Search near this node's stored vector; the node itself is left out.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / property / description
      Added value: +"The property that holds the embeddings, e.g. \"embedding\"."
    • removedInput schema / properties / property / title
      Removed value: -"Property"
    • addedInput schema / properties / query_vector / description
      Added value: +"The query embedding (the index's model and size), or use like_node_id."
    • removedInput schema / properties / query_vector / title
      Removed value: -"Query Vector"
    • changedInput schema / required
      Previous value: -[
      -  "label",
      -  "property",
      -  "query_vector"
      -]New value: +[
      +  "label",
      +  "property"
      +]
    • removedInput schema / title
      Removed value: -"vector_searchArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "vector_searchOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds one genuinely behavioral fact — results are ordered "Nearest first" — and notes that the like_node_id node is excluded (also stated in the schema). It says nothing about what a result row contains, whether distances are returned, or how ef affects result quality versus latency beyond the schema's own note.

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

Conciseness4/5

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

Three short sentences with no filler; the core operation comes first, followed by the fallback mode and the ordering note. The clipped "Nearest first" fragment is terse but carries real information.

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

Completeness3/5

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

For a 6-parameter tool with no output schema, the description omits the return shape entirely (node identifiers? similarity scores? how many fields?), and it never mentions the required label/property pairing that scopes the index. Combined with annotations that cover safety, it is adequate but leaves a real gap 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 coverage is 83%, so most parameters are already documented, including the either/or between query_vector and like_node_id and the meaning of ef. The description reinforces the model-availability condition behind choosing like_node_id, but adds no format, dimension, or unit detail beyond the schema. Baseline 3 fits.

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?

The description states a specific verb and resource ("Find the k nodes nearest ... in a vector index") and names both supported query modes, so the operation is unambiguous. It does not explicitly distinguish itself from sibling search tools such as mmr_search or vector_graph_search, which keeps it short of a 5.

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

Usage Guidelines4/5

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

It gives a concrete selection rule between the two input modes: "Without an embedding model, use like_node_id", with a plain-language gloss ("what is most like this node?"). It offers no exclusions or comparison against the other search siblings, so the guidance is clear but incomplete.

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