Skip to main content
Glama

unlink_memory

Remove links between two memories in either direction; leave relation empty to delete all relations for the pair and get a removed count.

Instructions

取消两条记忆的关联(任一方向);relation 为空时删除该对全部关系。 返回 {"ok": true, "removed": 删除数};记录不存在返回 {"error": "NOT_FOUND"}。 English: Remove links between two memories in either direction; when relation is empty all relations of the pair are removed. Returns {"ok": true, "removed": n}.

Input Schema

NameRequiredDescriptionDefault
to_idYes
clientNo
from_idYes
projectNo
relationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden and does disclose return values and an error case ({"ok": true, "removed": n} and NOT_FOUND). However, it does not state whether unlinking is reversible, what permissions are required, or any destructive side effects beyond link removal.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core behavior is front-loaded, but the description is duplicated in Chinese and English, creating redundancy rather than added clarity. It remains reasonably short and does not bury the key relation-empty rule.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations, no output schema, and five parameters at 0% schema coverage, the description leaves important gaps: parameter meanings for client/project/from_id/to_id, required permissions, and reversibility are absent. Return shape and NOT_FOUND are covered, but the overall definition is not complete enough for confident invocation.

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 explain all five parameters, but it only clarifies relation semantics and does not explain from_id, to_id, client, or project. An agent must infer the meanings of most parameters from their names alone.

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?

States a specific verb and resource: remove links between two memories, with scope details such as either-direction removal and clearing all relations when relation is empty. This clearly distinguishes it from the sibling link_memory tool.

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?

Provides implied usage guidance by explaining that an empty relation removes all relations for the pair, but it does not explicitly compare when to use this tool versus link_memory or list_links, nor does it state prerequisites.

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