forget
Remove the memory most relevant to a query, only when relevance meets a minimum score. This prevents deleting unrelated memories while enabling targeted cleanup.
Instructions
Delete the single memory most relevant to query, if it is relevant enough.
Destructive. Finds the best-matching memory and removes it only when its
relevance (cosine similarity, -1..1) reaches `min_score`. Below the floor
nothing is deleted and the best candidate is reported so the query can be
sharpened. Without the floor, any query against a non-empty memory deletes
its nearest neighbour, however unrelated.
Args:
query: Describes the memory to remove.
user_id: Namespace to delete from (default "default").
min_score: Relevance floor (default 0.5). Lower it only when the
reported candidate is confirmed to be the memory meant.
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": {
"query": "<query>"
},
"name": "forget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| user_id | No | default | |
| min_score | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |