Skip to main content
Glama

sage_link

Create typed relationships between memories to build a knowledge graph, recording how one memory supports, contradicts, or relates to another.

Instructions

Create a typed relationship between two existing memories. Use this to build a knowledge graph over memory: record that one memory supports, contradicts, causes, precedes, or refines another. The link is directional (source → target). Common link_type values: related (default), supports, contradicts, causes, precedes, refines, duplicates — but any short relation label is accepted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
link_typeNoRelationship type, e.g. supports, contradicts, causes, precedes, refines, relatedrelated
source_idYesID of the source memory (the 'from' side of the relationship)
target_idYesID of the target memory (the 'to' side of the relationship)
Behavior3/5

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

No annotations provided, so description carries full burden. It discloses that the link is directional and any label is accepted, but does not mention side effects, permission requirements, or what happens if source/target IDs are invalid. This leaves some behavioral gaps.

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?

The description is concise (two sentences) with front-loaded purpose. No redundant or unnecessary words; every sentence adds value.

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?

The description covers purpose, parameters, and usage context adequately. However, it does not mention return values or error scenarios, which would be helpful for a create operation. Given no output schema, this is a gap.

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

Parameters4/5

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

Schema covers all three parameters with descriptions. The description adds value by explaining the directional concept and emphasizing that any link_type label is accepted, going beyond the schema's enum-like list.

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 tool's purpose: creating typed relationships between memories to build a knowledge graph. It specifies directional nature (source→target) and lists common link types, making it distinct from sibling tools like sage_remember or sage_list.

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 explains when to use the tool ('build a knowledge graph over memory') and provides examples of relationship types. However, it lacks explicit instructions on when not to use it or alternatives among the sibling tools.

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/l33tdawg/sage'

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