Skip to main content
Glama

memory_relate

Creates a directed, typed link between two active memories to model relationships such as depends_on, supersedes, contradicts, or elaborates. Use it to connect related knowledge and make memory graphs traversable.

Instructions

Create a directed 1-hop typed relation edge between two active memories.

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": {
      "source_id": "<source_id>",
      "target_id": "<target_id>"
    },
    "name": "memory_relate"
  }
}

Input Schema

NameRequiredDescriptionDefault
weightNo
source_idYes
target_idYes
relation_typeNorelated

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the mutation/safety profile is covered. The description adds useful context that the edge is directed, single-hop, typed, and requires two active memories. It does not disclose behavior for duplicate edges, self-relations, or inactive-memory failures, so it adds moderate value beyond annotations without covering mutation edge cases.

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?

A single front-loaded sentence that names the action, the object, and its key constraints with zero filler. Nothing in it could be removed without losing meaning.

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 four-parameter mutation tool with no output schema and 0% schema description coverage, the definition is too thin. An agent still cannot tell what is returned, whether re-relating the same pair duplicates or overwrites an edge, or what weight is used for, all of which matter before invoking it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry parameter meaning and largely does not. The word "typed" hints at relation_type, but weight (range 0.1-10, default 1), the semantics of source_id versus target_id direction, and the meaning of each enum value are all left undocumented in both schema and description.

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?

States a specific verb and resource: "Create a directed 1-hop typed relation edge between two active memories." The scope constraint (both memories must be active) further differentiates it from memory_add, which creates memories rather than edges. It does not explicitly name a sibling alternative, so it stops short of a 5.

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?

The description gives no when-to-use guidance relative to alternatives such as memory_add, memory_correct, or memory_suppress, and no guidance on choosing among the relation_type values. The only implicit constraint is that both memories must be active, with no explanation of the consequences when they are not.

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