Skip to main content
Glama

forget

Delete all events matching a filter to fulfill GDPR erasure requests for a specific user, removing records from the database and vector index.

Instructions

Delete all events matching a filter (GDPR right to erasure).

Removes events from both the database and the vector index.
Commonly used to delete all data for a specific user on request.

Args:
    filter_key:   Field in event data to match (e.g. "user_id", "email", "session_id")
    filter_value: Value to match (e.g. "user_123", "alice@example.com")

Returns:
    deleted_events count

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": {
      "filter_key": "<filter_key>",
      "filter_value": "<filter_value>"
    },
    "name": "forget"
  }
}

Input Schema

NameRequiredDescriptionDefault
filter_keyYes
filter_valueYes

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 helpfully discloses the non-obvious side effects: removal from both the database and the vector index, which signals consistent state across stores. However, irreversibility, required permissions, and whether the deletion can be undone or scoped are all left unstated for a strongly destructive operation.

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 purpose before the Args/Returns blocks, and most sentences earn their place. The generated docstring-style Args list partly restates the schema property names, which is mild redundancy but not harmful.

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?

For a two-parameter destructive tool with no annotations and no output schema, the definition covers purpose, side effects, typical scenario, parameter examples, and the return value (deleted_events count). The remaining gap — safety and permission prerequisites for an irreversible erasure — is what holds it below 5.

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 coverage is 0%, so the description must compensate. Naming example keys ("user_id", "email", "session_id") and example values gives real guidance. However, it never clarifies matching semantics: exact versus partial match, case sensitivity, or how the key maps to nested event fields.

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 and resource ("Delete all events matching a filter") plus the domain framing "GDPR right to erasure," which makes the intent unmistakable. It is clearly distinct from list/read siblings like query_events or log_event, 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?

"Commonly used to delete all data for a specific user on request" gives a concrete use context, but the definition never states when NOT to use it (e.g., partial/individual deletion), nor does it point to an alternative tool or mention confirmation or the prerequisites before running.

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