MCP tools: remote-agent-knowledge

All tool groups

remote-agent-knowledge

Registered when: org: agentKnowledge.enabled (on by default; and the status route says this key gets them).

memory_forget

Forget (tombstone) a knowledge entry you may write. Needs a short reason; the row is kept for managers, hidden from search. Scratch state that overwrites belongs in remember/recall; durable knowledge with history and search belongs here. Results arrive as {org, dataTrust:"untrusted", notice, data}; errors as {org, error}. Never store a secret: a secret-shaped title or body is refused whole (422 secret_in_memory).

ParameterTypeRequiredDescription
idstringyesKnowledge entry id (uuid)
reasonstringyes

Example call:

{"name":"memory_forget","arguments":{"id":"<id>","reason":"<reason>"}}

Related: memory_write, memory_list, memory_supersede, memory_purge.

memory_list

List the knowledge you may read in this organization, newest first, optionally filtered by scope, kind, project or tags. Scratch state that overwrites belongs in remember/recall; durable knowledge with history and search belongs here. Results arrive as {org, dataTrust:"untrusted", notice, data}; errors as {org, error}. Never store a secret: a secret-shaped title or body is refused whole (422 secret_in_memory).

ParameterTypeRequiredDescription
scope"org" \"project" \"persona" \
kind"fact" \"decision" \"preference" \
projectIdstringno
tagsstring[]no
includeHistorybooleanno
includeExpiredbooleanno
dueForReviewbooleanno
limitintegerno
afterstringnonextCursor from the previous page; null nextCursor means you have every row

Example call:

{"name":"memory_list","arguments":{}}

Related: memory_write, memory_supersede, memory_forget, memory_purge.

memory_purge

Permanently delete a knowledge entry AND every earlier or later version of it (text and meaning vectors). Unlike memory_forget nothing is kept. A persona key purges its own persona notes only; an org admin purges any. Purging an id that is already gone answers purged:false. Scratch state that overwrites belongs in remember/recall; durable knowledge with history and search belongs here. Results arrive as {org, dataTrust:"untrusted", notice, data}; errors as {org, error}. Never store a secret: a secret-shaped title or body is refused whole (422 secret_in_memory).

ParameterTypeRequiredDescription
idstringyesKnowledge entry id (uuid)
reasonstringyes

Example call:

{"name":"memory_purge","arguments":{"id":"<id>","reason":"<reason>"}}

Related: memory_write, memory_list, memory_supersede, memory_forget.

memory_supersede

Replace a knowledge entry with a corrected one. The old entry stays as history. expectedSha is the bodySha256 you last read; a different current value is 409 (re-read, then retry). Scratch state that overwrites belongs in remember/recall; durable knowledge with history and search belongs here. Results arrive as {org, dataTrust:"untrusted", notice, data}; errors as {org, error}. Never store a secret: a secret-shaped title or body is refused whole (422 secret_in_memory).

ParameterTypeRequiredDescription
idstringyesKnowledge entry id (uuid)
expectedShastringyesbodySha256 of the entry you are replacing
bodystringyes
titlestringno
tagsstring[]no
reviewAfterstringno
expiresAtstringno

Example call:

{"name":"memory_supersede","arguments":{"id":"<id>","expectedSha":"<expectedSha>","body":"<body>"}}

Related: memory_write, memory_list, memory_forget, memory_purge.

memory_write

Store one durable piece of knowledge (a fact, decision, preference, link or how-to) for this organization. Send a clientRequestId when you might retry: the same request returns the first entry. decision/preference need reviewAfter. A link stores sourceKind+sourceId, never a copy of the source text. Scratch state that overwrites belongs in remember/recall; durable knowledge with history and search belongs here. Results arrive as {org, dataTrust:"untrusted", notice, data}; errors as {org, error}. Never store a secret: a secret-shaped title or body is refused whole (422 secret_in_memory).

ParameterTypeRequiredDescription
scope"org" \"project" \"persona" \
projectIdstringnoRequired for project scope
kind"fact" \"decision" \"preference" \
titlestringyes
bodystringyesAt most 8000 bytes
tagsstring[]no
sourceKind"human" \"agent" \"ticket" \
sourceIdstringno
reviewAfterstringnoISO timestamp
expiresAtstringnoISO timestamp
clientRequestIdstringno

Example call:

{"name":"memory_write","arguments":{"scope":"org","kind":"fact","title":"<title>","body":"<body>"}}

Related: memory_list, memory_supersede, memory_forget, memory_purge.

We use essential cookies to keep you signed in. See our Privacy Policy for details.