Skip to main content
Glama

KG Invalidate

memory-kg-invalidate

Invalidates a knowledge graph triple to mark a fact as no longer valid while keeping it in history.

Instructions

Mark a fact as no longer valid. Stays in history.

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": {
      "tripleId": "<tripleId>"
    },
    "name": "memory-kg-invalidate"
  }
}

Input Schema

NameRequiredDescriptionDefault
tripleIdYesTriple ID to invalidate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

B3.4/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 behavioral burden. 'Stays in history' is a genuinely useful disclosure — it tells the agent this is a non-destructive, history-preserving operation rather than a deletion. What remains undisclosed is whether the action is reversible/re-validatable, what happens to facts derived from the invalidated triple, and whether the call is idempotent.

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?

Two short sentences with no filler, and the action is front-loaded ahead of the persistence note. It is efficient, though the extreme terseness means some information an agent would want is simply absent rather than trimmed.

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 a one-parameter mutation tool with no annotations and no output schema, the definition covers the essential action and its history-preserving nature. It stops short of covering reversibility, effect on dependent facts, or what the caller gets back, which are material for a state-changing KG operation.

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?

There is a single parameter with 100% schema coverage, and the schema itself documents it as 'Triple ID to invalidate.' The description adds no format, sourcing, or lookup guidance beyond that, so the baseline of 3 is correct.

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?

States a specific verb and object — 'Mark a fact as no longer valid' — which unambiguously identifies a soft-invalidation mutation on a knowledge-graph triple. Sibling tools like memory-kg-add and memory-kg-query are implicitly different operations, but the description never names them, so differentiation relies on the reader's inference.

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?

Usage is implied: obsolete facts should be invalidated rather than removed, and the 'stays in history' clause signals this is not a hard delete. However, there is no explicit when-to-use guidance, no statement about invalidating versus adding a corrected triple, and no mention of any alternative tool.

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