Skip to main content
Glama

Delete data points from a project's memory

delete_memory
DestructiveIdempotent

Deletes data points from a project's memory by their source ids, as POST /api/v1/data-points/delete does: each data point and every memory past drew from it leave recall at once, and their stored copies and index entries are purged in the background. A recall names each source's id as sourceId. Every id must name a live data point of the project, or nothing is deleted and the refusal names the ids that do not. Destructive: call it without confirm first, put the sentence it answers to the person, and call again with confirm: true only if they agree. When your client shows forms, past.dev asks the person in a form instead, and their answer is final. It answers the deletion's operationId; get_memory_deletion says when the purge is done. Deleting spends no credits. Needs project Write.

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": {
      "sourceIds": "<sourceIds>",
      "confirm": "<confirm>"
    },
    "name": "delete_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYestrue only once the person has agreed to the sentence an unconfirmed call answered with.
projectNoThe project's slug, exactly as list_projects returned it. Omit it only when the organization has one live project.
sourceIdsYesThe source ids to delete, 1 to 1,000, exactly as recall_memory or ingest_memory returned them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint and idempotentHint, but the description adds substantial context: memory derived from the data point also leaves recall, stored copies and index entries are purged in the background, and the call is all-or-nothing when any id is not live. It also covers permission (project Write) and cost (no credits). Slightly dense but genuinely additive.

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?

Front-loaded with the verb and resource, then escalates to consequences, confirmation flow, and routing. Some repetition of the confirm mechanics already in the schema parameter description, and the long compound sentence about purging could be split, but little is wasted.

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?

For a destructive, async, all-or-nothing operation with no output schema, the description supplies everything an agent needs: return value (operationId), how to check completion, failure mode (refusal naming invalid ids), permissions, and cost.

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%, so baseline is 3, and the description goes beyond it by explaining where sourceIds values come from ('a recall names each source's id as sourceId') and the exact semantics of confirm as agreement to a specific returned sentence rather than a generic boolean.

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?

States a specific verb and resource ('Deletes data points from a project's memory') plus the identifier used to select them ('by their source ids') and the underlying endpoint. This clearly separates it from delete_project, delete_tag, and archive_project named among siblings.

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?

Gives an explicit confirmation protocol: call without confirm first, present the returned sentence to the person, then call again with confirm: true only on agreement. It also names the alternative path (form-showing clients let past.dev ask the person) and routes post-deletion polling to get_memory_deletion.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources