Skip to main content
Glama

connect

Link two existing memories with a typed relationship and narrative explanation, building an associative network for retrieval by meaning rather than address.

Instructions

Connect two memories with a typed, narrative relationship. Valid relationship types are: caused_by, led_to, blocked_by, unblocks, connects_to, contradicts, depends_on, is_example_of — and both node IDs must already exist before calling this.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
from_nodeYesID of the source node
narrativeNoThe story of this connection - why these two things are linked
relationshipYesType of relationship
to_nodeYesID of the target node
Behavior3/5

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

No annotations are provided, so the description must cover behavioral traits. It discloses preconditions (both nodes must exist) and valid relationship types, but it does not mention side effects (e.g., if existing connections are overwritten), idempotency, or required permissions. This is adequate but not comprehensive.

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, front-loaded with the action and key details. Every sentence earns its place, stating purpose, valid relationships, and precondition. No extraneous information.

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?

For a tool with 4 parameters, no output schema, and no annotations, the description covers purpose, preconditions, and relationship types. It lacks details on return value, error cases, or idempotency, but is mostly complete for usage. Score 4 because it meets the needs for basic usage.

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?

The input schema has 100% description coverage for all parameters. The description adds context by listing relationship types (already in the schema) and emphasizing the narrative, but it does not provide significant additional meaning beyond the schema. Baseline 3 is appropriate.

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 'connect' and resource 'two memories', and specifies that it creates a typed, narrative relationship. It lists all valid relationship types, distinguishing it from sibling tools like 'disconnect'.

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

Usage Guidelines4/5

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

The description provides clear context by listing valid relationship types and requiring both node IDs to exist. However, it does not explicitly mention when to use this tool over sibling tools like 'connect_all', so it lacks a full when-not/alternatives guide.

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/corbym/memoryweb'

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