Skip to main content
Glama
grafeo-mcp

grafeo-mcp

Official
by GrafeoDB

vector_graph_search

Read-only

Search nodes by vector similarity, then return each hit with connected neighbors in both edge directions, including hop count and source node for graph-aware exploration.

Instructions

Vector search, then the graph around each hit, in both edge directions.

Returns seeds (as vector_search) and neighbors, each with its hop count and the node it was reached from.

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

Input Schema

NameRequiredDescriptionDefault
kNoNumber of seed nodes.
labelYes
propertyYesThe property that holds the embeddings, e.g. "embedding".
expand_depthNoHops to expand from each seed; 0 for none.
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.
expand_edge_typeNoFollow only this edge type.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed18 schema fields changedv0.3.0
    • addedInput schema / properties / expand_depth / description
      Added value: +"Hops to expand from each seed; 0 for none."
    • removedInput schema / properties / expand_depth / title
      Removed value: -"Expand Depth"
    • removedInput schema / properties / expand_edge_type / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / expand_edge_type / default
      Removed value: -null
    • addedInput schema / properties / expand_edge_type / description
      Added value: +"Follow only this edge type."
    • removedInput schema / properties / expand_edge_type / title
      Removed value: -"Expand Edge Type"
    • addedInput schema / properties / expand_edge_type / type
      Added value: +"string"
    • addedInput schema / properties / k / description
      Added value: +"Number of seed nodes."
    • 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_graph_searchArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "vector_graph_searchOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds valuable behavioral context by disclosing the return shape (seeds plus neighbors, each with hop count and the node it was reached from), which matters since there is no output schema. It stops short of noting result limits or cost of deep expansion.

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 tight sentences, front-loaded with the core operation and followed by the return structure. No wasted wording.

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?

For a 7-parameter tool with no output schema, the description supplies the missing return-value information and the core semantics. It is nearly complete, lacking only explicit guidance on choosing between this and vector_search/get_neighbors.

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 86%, so parameters are largely self-documenting. The description adds only the 'both edge directions' nuance, which loosely relates to expand_edge_type, but does not clarify k, expand_depth, or the like_node_id vs query_vector choice beyond 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?

States a specific compound operation: vector search followed by graph expansion around each hit, in both edge directions. This clearly distinguishes it from vector_search (seeds only) and get_neighbors (graph only), so an agent can tell what it uniquely does.

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?

Usage is implied by the description's 'vector search, then the graph around each hit' framing, but there is no explicit when-to-use guidance or named alternative (e.g., use vector_search if you don't need neighbors). The agent must infer the choice from sibling names alone.

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