Skip to main content
Glama

relate

Idempotent

Connects two existing memories with a directed, labeled relationship so agents can model context links and traverse related knowledge across sessions.

Instructions

Connect two existing memories with a directed, labeled relationship.

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": {
      "fromId": "<fromId>",
      "toId": "<toId>",
      "kind": "<kind>"
    },
    "name": "relate"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
toIdYes
fromIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true, destructiveHint=false, and openWorldHint=false, so safety and repeat-call behavior are covered. The description usefully adds that edges are directed and labeled, but says nothing about what happens on duplicate edges, whether existing relations can be overwritten, or what error surfaces for unknown IDs.

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 with zero filler; the mutation verb and its constraints arrive immediately. Nothing needs trimming and nothing is buried.

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 small three-parameter mutation with annotations covering idempotency and safety and no output schema, the definition is barely sufficient. It omits the failure mode for nonexistent memory IDs and the semantics of the kind label, which are the two things an agent most needs before calling.

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 0%, so the schema gives only types and UUID formats with no prose. The description maps conceptually onto the three parameters — two memories (fromId/toId) and a label (kind) — and "directed" clarifies that fromId→toId orientation matters, but it offers no guidance on the kind vocabulary, whether kind is free-form or a controlled set, or limits despite an 80-character cap.

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?

"Connect two existing memories with a directed, labeled relationship" names a specific verb (connect), a specific resource (memories), and the result shape (directed edge with a label). The qualifier "existing" implicitly separates it from remember, which presumably creates memories, so an agent can reason about the boundary without opening a schema.

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 word "existing" implies the prerequisite that both memories must already be present, which is the main usage condition. However, there is no explicit when-to-use/when-not-to-use statement, no mention of what to do if a memory is missing, and no reference to sibling tools for the creation case.

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

Deploy Server

Other Tools