Pin or unpin a memory
memory_pinToggle the pinned status of a memory to protect it from pruning and boost its search ranking. Pin only high-leverage facts and decisions; overuse diminishes effectiveness.
Instructions
Toggle the pinned flag — pinned memories survive pruning and rank higher in search. Idempotent. Use sparingly: reserve pins for canonical decisions, user preferences, and high-leverage facts. Pinning everything defeats the purpose.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memory_id | Yes | Id of the memory to pin or unpin. | |
| pinned | No | `true` (default) to pin, `false` to unpin. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | `Memory <id> pinned.` / `Memory <id> unpinned.` on success, `Memory <id> not found.` when missing. |