Skip to main content
Glama

palace_kg_invalidate

Set an end date on a currently open knowledge-graph fact to mark it no longer true while preserving it as history.

Instructions

Mark a knowledge-graph fact as no longer true by setting its end date. The fact is kept as history (palace_kg_timeline and as_of queries still see it), not deleted. Only a currently open fact with exactly this subject, predicate and object is changed; if none matches, nothing changes. When a fact changes, call this on the old fact first and then palace_kg_add for the new one.

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": {
      "subject": "<subject>",
      "predicate": "<predicate>",
      "object": "<object>"
    },
    "name": "palace_kg_invalidate"
  }
}

Input Schema

NameRequiredDescriptionDefault
endedNoDate the fact stopped being true, YYYY-MM-DD (default: today)
objectYesObject of the fact to end
subjectYesSubject of the fact to end, as it was added
predicateYesPredicate of the fact to end, e.g. uses_database

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.20.7
    • changedInput schema / properties / ended / description
      Previous value: -"YYYY-MM-DD (default: today)"New value: +"Date the fact stopped being true, YYYY-MM-DD (default: today)"
    • addedInput schema / properties / object / description
      Added value: +"Object of the fact to end"
    • addedInput schema / properties / predicate / description
      Added value: +"Predicate of the fact to end, e.g. uses_database"
    • addedInput schema / properties / subject / description
      Added value: +"Subject of the fact to end, as it was added"
  2. First observedv0.20.5

TDQS

A4.7/5.0
Behavior5/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 and does so well: it discloses that the fact is retained as history, not deleted, that only currently open facts with an exact subject-predicate-object triple are changed, and that no match means no change.

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 definition is three sentences, front-loaded with the core action, then retention behavior, matching constraint, and workflow. Every sentence adds useful information without repetition.

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

Completeness5/5

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

Given the tool’s mutation semantics, the lack of annotations, and the absence of an output schema, the description provides enough context for correct invocation: what is changed, what is preserved, when no change occurs, and how to pair it with palace_kg_add.

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 description coverage is 100%, so the schema already documents all four parameters including the ended default. The description reinforces the exact subject-predicate-object matching requirement but does not add much per-parameter meaning beyond the schema.

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 states a specific verb and resource: mark a knowledge-graph fact as no longer true by setting its end date. It explicitly distinguishes this from deletion and from adding a new fact.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit workflow guidance: when a fact changes, call this on the old fact first, then palace_kg_add for the new one. It also states the exact-match constraint and the no-op case, which clarifies when the tool will or will not act.

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