Skip to main content
Glama
@memoryrelay/mcp-server

@memoryrelay/mcp-server

Official
by memoryrelay

entity_link

Link an entity to a memory to establish knowledge-graph relationships, using a relationship type such as mentioned_in, created_by, or relates_to.

Instructions

Link an entity to a memory to establish relationships in the knowledge graph.

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>",
      "memory_id": "<memory_id>"
    },
    "name": "entity_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
entity_idYesEntity UUID
memory_idYesMemory UUID
relationshipNoRelationship type (e.g., "mentioned_in", "created_by", "relates_to")mentioned_in

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It reveals nothing beyond the bare mutation: it does not say whether linking is idempotent, what happens on a duplicate link, whether missing IDs cause an error, or whether the link is reversible.

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?

A single front-loaded sentence with no filler or repetition. It is efficiently sized, though its brevity is partly the source of the missing behavioral detail rather than a deliberate compression of richer content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a graph-mutating tool with no annotations and no output schema, the description should at minimum cover duplicate handling and failure modes. With three fully documented parameters the schema is adequate, but the behavioral surface of the operation is left entirely unexplained.

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 entity_id, memory_id, and relationship all documented including example values and a default of "mentioned_in". The description adds no meaning beyond that schema, so the baseline 3 applies.

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 states a specific verb ("Link") and both resources (an entity and a memory) plus the resulting effect (a relationship in the knowledge graph). It is clear what the tool does, though it does not distinguish itself from any sibling such as project_add_relationship or entity_graph.

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

Usage Guidelines2/5

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

There is only a purpose clause ("to establish relationships in the knowledge graph") that implies why one would call it. It gives no explicit when-to-use condition, no prerequisites (e.g. the entity and memory must already exist), and no guidance about alternatives.

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