Semantic Graph Search
graph_searchFinds entities semantically similar to a natural-language query, even when wording differs from canonical names, and optionally expands results through graph traversal.
Instructions
Find entities semantically similar to a natural-language query, then optionally expand via graph traversal. Uses local sentence embeddings (bge-small-en, 384-dim) — no external API. Best when the user's wording doesn't match canonical entity names (e.g. "containers" → Docker, "AI tools" → Claude Code/Anthropic SDK). If the embedder is unavailable it returns an error; use graph_query instead. Expansion follows the top 5 seeds only, capped at 30 edges.
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": {
"query": "<query>"
},
"name": "graph_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural-language query (any phrasing — synonyms and paraphrases work). | |
| top_k | No | How many semantically similar entities to retrieve as seeds (default 10). | |
| expand | No | If true (default), also return the immediate graph neighbours of each seed. | |
| entity_types | No | Restrict results to these entity types. | |
| min_similarity | No | Minimum cosine similarity threshold (default 0.5). | |
| expand_min_weight | No | Min edge weight when expanding (default 0.3). |