Skip to main content
Glama
agentcore-memory-mcp

agentcore-memory-mcp

by htuann

memory_delete

Delete long-term memories by content hash or filter by tags and dates; use dry run to preview matches before removal.

Instructions

Delete one memory by content_hash, or all that match tags and dates.

At least one filter is required. With dry_run true, nothing is deleted and the matches are listed.

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
tagsNo
afterNo
beforeNo
dry_runNo
tag_matchNoany
content_hashNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose a meaningful behavioral trait by explaining that dry_run true performs no mutation and instead lists matches. It omits whether deletion is permanent/irreversible, whether bulk deletion is atomic, and any permission requirements, which matters for a destructive tool.

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?

Three short sentences, front-loaded with the primary capability, then the precondition, then the dry_run behavior. No filler and no repetition of the tool name.

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?

Output schema exists, so return values need not be described, and the two deletion modes plus the required-filter rule are covered. For an unannotated destructive tool with six undocumented parameters, the missing irreversibility warning and tag_match semantics leave a real gap.

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 0%, so the description must compensate: it explains content_hash, tags, dates, and dry_run, and states that at least one filter must be supplied. It leaves tag_match (which determines any-vs-all tag matching) and the date string format for after/before completely unaddressed, and those are the semantics most likely to cause a wrong call.

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?

The description names a specific verb and resource ("Delete one memory") and distinguishes two operating modes: single-record deletion by content_hash versus bulk deletion matched by tags and dates. An agent can tell this apart from memory_search or memory_update without inspecting the schema, 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?

It gives a hard precondition ("At least one filter is required") and explains the dry_run alternative path, which is genuine usage guidance. However, it never states when to prefer this over memory_search plus manual cleanup, nor when-not to delete, so the routing guidance is only implied.

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