Skip to main content
Glama

unlink_memories

Remove relationships between two memories. Specify a relation type to remove only that specific link, or omit to delete all connections between them.

Instructions

Remove relationship(s) between two memories.

If relation_type is specified, only removes that specific relationship. If not specified, removes all relationships between the two memories.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
to_memory_idYesTarget memory ID
relation_typeNoSpecific relation type to remove, or None to remove all
from_memory_idYesSource memory ID

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

The description adds behavioral context beyond the schema by explaining the conditional behavior: if relation_type is specified, only that relationship is removed; otherwise, all relationships between the two memories are removed. This is valuable for agent decision-making.

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 two short sentences, front-loaded with the action. Every word adds value, and it is efficient in conveying the core logic.

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 the key behavioral nuance and parameter behavior. However, it lacks information about error conditions, prerequisites (e.g., existence of memories), or side effects of removal. For a mutation tool with no annotations, this leaves some gaps.

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 coverage is 100%, so the schema already documents each parameter. The description rephrases the behavior for relation_type but does not add new semantic details about the parameters themselves (e.g., constraints or examples).

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 'Remove relationship(s) between two memories', using a specific verb and resource. It also distinguishes the tool from its sibling 'link_memories' by being the reverse operation.

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 description does not explicitly state when to use this tool versus alternatives, nor does it provide prerequisites or exclusions. The nuance about specifying relation_type is present but offers no guidance on when to choose this tool over others.

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/michael-denyer/memory-mcp'

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