Skip to main content
Glama

relation_forget

Permanently remove a stored relation and its entire version chain to support right-to-be-forgotten erasure instead of soft hiding.

Instructions

硬删一条关系,连版本链一起删(被遗忘权:只删当前值等于假装忘了)。

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": {
      "sessionId": "<sessionId>",
      "subjectId": "<subjectId>",
      "key": "<key>"
    },
    "name": "relation_forget"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
sessionIdYes
subjectIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the critical destructive trait (the version chain is destroyed with the record) and the right-to-be-forgotten intent. It omits permissions, confirmation requirements, behavior when the relation is absent, and any effect on dependent context references.

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

Conciseness4/5

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

One tight sentence with the destructive action front-loaded and the rationale in a short trailing clause. The parenthetical is slightly convoluted but nothing is wasted.

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 an irreversible mutation with no annotations, no output schema, and zero parameter documentation, the description covers the most important fact — that the version chain is destroyed — but leaves the identifier semantics and safety preconditions unaddressed.

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 coverage is 0% across three required parameters, so the description must compensate. It only implies that 'a relation' is the target, saying nothing about what sessionId, subjectId, or key mean or how they scope the deletion, leaving two identifiers entirely undocumented.

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?

The description names a specific verb (硬删, hard delete) and resource (一条关系, a relation) plus its scope (连版本链一起删, the whole version chain), which is meaningfully different from soft-delete style siblings. It does not name any sibling explicitly, so it falls short of a 5.

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 parenthetical rationale contrasts this with deleting only the current value, which it calls 'pretending to forget' — that gives the agent a clear condition for choosing hard deletion over a soft alternative. No alternative tool is named, so there is context but no explicit exclusion.

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