MCP toolsmemory_pin

memory_pin

Pins or unpins a fact. Consolidation never merges a pinned fact. Pinning does not raise the fact in memory_recall or memory_search: a pinned fact and an identical unpinned one get the same score.

Arguments

NameTypeRequiredDefaultNotes
factIdstringyesId of the fact.
unpinbooleannofalsePass true to unpin.
idempotencyKeystringnoPrevents pinning or unpinning twice on a retry.

Example

Pin the fact that says “The Larkspur warehouse fleet gets new firmware every two weeks”:

{
  "name": "memory_pin",
  "arguments": {
    "factId": "<fact id>"
  }
}

To unpin, send { "factId": "<fact id>", "unpin": true }.

Returns

The updated fact, as the server returns it from POST /facts/{id}/pin. It has the same fields as the response of memory_remember, with pinned set to true or false.

Notes

  • Pin sparingly. A pin is for a fact that must survive consolidation as written.
  • A pinned fact still has a validity window. memory_forget closes it like any other.
  • memory_session with action: "pin" does the same thing.