Skip to main content
Glama
@memoryrelay/mcp-server

@memoryrelay/mcp-server

Official
by memoryrelay

entity_graph

Explore an entity's knowledge graph to retrieve neighboring entities and their relationships up to two hops away, revealing connections between people, projects, and concepts.

Instructions

Explore the knowledge graph around an entity. Returns neighboring entities and their relationships up to N hops away. Useful for understanding connections between people, projects, and concepts.

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": {
      "entity_id": "<entity_id>"
    },
    "name": "entity_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoHow many hops to traverse (1 or 2)
entity_idYesEntity UUID to explore from
max_neighborsNoMaximum neighbor entities to return (1-100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden. It does useful work by revealing traversal semantics ("up to N hops away") and the shape of the result (neighbors plus relationships), but it says nothing about read-only behavior, what happens if the entity_id does not exist, truncation when max_neighbors is hit, or cost/latency of deeper traversals.

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, front-loaded with the core action and result before the use-case rationale. Nothing is redundant, though the final sentence is the weakest and only loosely earns its place.

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 three-parameter read tool with no output schema and no annotations, the description covers purpose and return shape adequately. It falls short on failure modes (unknown entity), result truncation behavior, and any safety/read-only framing that annotations would normally supply.

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%, with depth, entity_id, and max_neighbors all documented including ranges and defaults, so the baseline is 3. The description reinforces depth semantics with "up to N hops away" but adds no format or constraint detail beyond the schema.

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 uses a specific verb ("Explore") with a specific resource ("the knowledge graph around an entity") and states what comes back: neighboring entities and their relationships. It is clearly a read/traversal tool, distinguishable in kind from mutation siblings like entity_create or entity_link, though it never names an alternative traversal tool to contrast with.

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 closing sentence gives an implied use case ("understanding connections between people, projects, and concepts"), which tells the agent the scenario but not the decision rule. There is no statement of when to prefer this over entity_list or project_dependencies, and no exclusions or prerequisites such as needing a valid entity UUID.

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