> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memcontext.in/llms.txt
> Use this file to discover all available pages before exploring further.

# memory_feedback

> Rate a retrieved memory to improve future retrieval quality.

## Description

`memory_feedback` records whether a retrieved memory was useful, irrelevant, outdated, or wrong. **This feedback directly affects search ranking** - memories marked "wrong" are heavily penalized (0.3x score), "outdated" moderately (0.5x), while "helpful" gets a small boost (1.1x).

Feedback does not edit memory content. If the memory is wrong or outdated and
you know the corrected fact, call [`update_memory`](/mcp/update-memory) with the
corrected content after recording feedback.

## Parameters

| Parameter  | Type   | Required | Description                                                                         |
| ---------- | ------ | -------- | ----------------------------------------------------------------------------------- |
| `memoryId` | string | Yes      | The memory ID to rate. Use the `id` returned by `search_memory`.                    |
| `type`     | string | Yes      | Feedback type. One of the values below.                                             |
| `context`  | string | No       | Optional explanation of why this feedback is being submitted. Max 1,000 characters. |

### Feedback types

| Type          | When to use                                                  |
| ------------- | ------------------------------------------------------------ |
| `helpful`     | The memory was relevant and useful in the current context    |
| `not_helpful` | The memory was irrelevant to the current query               |
| `outdated`    | The memory contains stale information that is no longer true |
| `wrong`       | The memory contains incorrect information                    |

## Example

```
memory_feedback({
  memoryId: "a1b2c3d4-...",
  type: "outdated",
  context: "User switched from Redux to Zustand last week"
})
```

## Response

Returns `{ success: true }` on success, or a `404` error if the memory was not found.
