Skip to main content
Glama

memory_delete

Delete incorrect or outdated memories by fact_id, or remove an entire source document and its facts by doc_id from local SQLite.

Instructions

Delete an incorrect or outdated memory by fact_id or delete an entire source document by doc_id from local SQLite.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "memory_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_idNoDocument ID (e.g. doc-xxxxxxxxxxxx) to remove all its facts and segments.
fact_idNoNumeric fact_id returned by memory_recall.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the whole burden and does usefully disclose the blast radius (a doc_id call wipes all facts and segments) and the local SQLite backend. It omits irreversibility, permissions, and — critically — that the schema marks zero required parameters, so the description never warns that a call with neither id is ambiguous.

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?

A single front-loaded sentence with two parallel branches and zero filler; the destructive scope is stated before the identifier mechanics.

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 destructive tool with no annotations and no output schema, the definition should state irreversibility and the required-parameter expectation. It covers the what and the scope of deletion but leaves those two gaps for an agent to guess.

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% and both params are documented well, so this is at or above baseline. The description reinforces the fact_id/doc_id dichotomy (single fact vs whole document) in prose, but adds no format or edge-case detail beyond the schema text.

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 (delete) plus two distinct resources (a memory by fact_id, an entire source document by doc_id) and the storage backend (local SQLite). The destructive verb makes it clearly distinct from recall/remember/stats, though no sibling is named explicitly.

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?

"Delete an incorrect or outdated memory" implies the triggering condition, and the doc_id branch signals a bulk-removal case. However there are no exclusions or alternatives — nothing says to prefer memory_remember for corrections, or when the doc-level purge is inappropriate.

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