Skip to main content
Glama

Invalidate a fact

invalidate_fact

Marks a stored fact as no longer valid when the user corrects information or requests a change, preserving history without deletion.

Instructions

Marks a stored fact as no longer valid. Use this when the user corrects a fact, says something has changed, or explicitly asks to forget something. Does NOT delete the fact -- preserves history. Requires the fact_id from a prior save_fact or search_memory result. Do NOT use for new information -- use save_fact instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fact_idYesUUID of the fact to invalidate
reasonNoWhy the fact is no longer valid (optional but recommended)
session_idNoCurrent session ID for the audit log
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that the fact is not deleted but marked invalid, preserving history. This adds useful behavioral context beyond the tool's basic purpose.

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 concise with four sentences; each sentence adds value. It is front-loaded with the purpose and immediately provides usage guidance and behavioral insight.

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

Completeness4/5

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

Given the tool's simplicity and full schema coverage, the description adequately explains behavior and input sources. It could mention the return value or success indication, but overall it is sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the description adds context: fact_id must come from prior tools, reason is optional but recommended, session_id for audit log. This enhances understanding beyond schema descriptions.

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 the tool marks a stored fact as no longer valid, using a specific verb and resource. It distinguishes itself from save_fact by explicitly indicating when not to use it.

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?

The description provides explicit guidance on when to use (user corrects a fact, says something has changed, asks to forget) and when not to use (new information, use save_fact instead). It also specifies the prerequisite of having a fact_id from save_fact or search_memory.

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/malamutemayhem/unclick'

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