Skip to main content
Glama

get_memory_subgraph

Retrieve the subgraph of connected memories around a center node to understand the context of a specific memory or entity. Specify node ID, traversal depth (1-3), and optional workspace path.

Instructions

Get a subgraph around a memory node — all connected memories.

Useful for understanding the context around a specific memory or entity.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
node_idYesCenter node ID.
depthNoHow many hops to traverse (1-3, default 2).
workspace_pathNoPath to soul workspace.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations provided, so the description must convey behavioral traits. It only states that connected memories are returned, with no mention of side effects, limits, or safety. For a read operation, a statement of non-destructiveness would improve transparency.

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 sentences with zero waste: the first defines the action, the second gives context. Front-loaded and efficient.

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 the output schema exists, the description does not need to detail return values. However, it could hint at the structure (e.g., 'returns nodes and edges'), but the current text provides sufficient context for a simple graph retrieval 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 description coverage is 100%, so the baseline is 3. The description adds no further meaning to the parameters beyond what the schema already provides (node_id, depth, workspace_path).

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 verb ('Get') and resource ('subgraph around a memory node — all connected memories'), which distinguishes it from sibling tools like query_memory_graph or memory_recall that may have different scopes.

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?

The second sentence provides a use case ('understanding context around a specific memory or entity'), offering implied guidance, but it does not explicitly state when not to use this tool or mention alternative sibling tools.

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/sailorpepe/undesirables-mcp-server'

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