Skip to main content
Glama

Semantic Graph Search

graph_search
Read-only

Matches natural-language queries to semantically similar entities, even when wording differs, then optionally retrieves their graph neighbors.

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). Falls back to graph_query if no embeddings available.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesNatural-language query (any phrasing — synonyms and paraphrases work).
top_kNoHow many semantically similar entities to retrieve as seeds (default 10).
min_similarityNoMinimum cosine similarity threshold (default 0.5).
entity_typesNoRestrict results to these entity types.
expandNoIf true (default), also return the immediate graph neighbours of each seed.
expand_min_weightNoMin edge weight when expanding (default 0.3).
Behavior5/5

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

Discloses use of local sentence embeddings (bge-small-en, 384-dim) and the expansion behavior. Aligns with annotations (readOnlyHint=true) without contradiction.

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?

Three sentences, each adding essential information. Front-loaded with purpose, then usage guidance, then behavioral detail. No redundant or irrelevant content.

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?

Given 6 parameters, no output schema, and complex expansion logic, the description is mostly complete. It explains the core functionality and when to use it. Could mention what the returned data looks like (e.g., list of entities with similarity scores and neighbors), but not critical.

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 100%, so baseline is 3. The description adds overall context but does not provide new per-parameter details beyond what the schema already gives. No independent value added for parameters.

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?

The description clearly states the tool finds semantically similar entities to a natural-language query and optionally expands via graph traversal. It differentiates from sibling tools by mentioning falling back to graph_query when embeddings are unavailable.

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

Usage Guidelines5/5

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

Explicitly states when to use this tool (user wording doesn't match canonical entity names) and when to fall back to graph_query (no embeddings available). Provides illustrative examples like 'containers' → Docker.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/stevepridemore/graph-memory'

If you have feedback or need assistance with the MCP directory API, please join our Discord server