MCP tools: remote-agent-knowledge
remote-agent-knowledge
Registered when: org: agentKnowledge.enabled (on by default; and the status route says this key gets them).
memory_about
Ask what this organization already knows about a subject. Returns a status you must respect: answered (we know -- entries follow, each with confidence and a stale flag), unknown (we looked where this lives and found nothing), or out_of_coverage (we have never swept this domain, so silence means nothing -- do not treat it as "no"). Reads only current entries, never superseded or forgotten ones. 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).
| Parameter | Type | Required | Description |
|---|---|---|---|
subject | string | yes | What you want to know about, in words |
domain | string | no | Coverage namespace to judge unknown vs out_of_coverage (e.g. 'deploy') |
scope | "org" \ | "project" \ | "persona" \ |
projectId | string | no | |
match | "all" \ | "any" \ | "websearch" |
limit | integer | no |
Example call:
{"name":"memory_about","arguments":{"subject":"<subject>"}}
Related: memory_write, memory_list, memory_supersede, memory_forget, memory_purge, memory_what_happened, memory_cover, memory_coverage.
memory_cover
Record that you SWEPT a domain and what you found, so a later memory_about over the same domain can answer unknown ("looked, found nothing") instead of out_of_coverage ("never looked"). Only a sweep with complete=true (every candidate ingested) can make a miss unknown. Scope defaults to org (needs org:manage_agents); a persona or runner key covers its own scope (persona / runner), which only that key and a manager session can read. Upserts on (scope, project, persona or runner owner, domain), so a retry just updates the same row. 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).
| Parameter | Type | Required | Description |
|---|---|---|---|
domain | string | yes | The namespace you swept, e.g. 'deploy' or 'repo:bugtracker' |
scope | "org" \ | "project" \ | "persona" \ |
projectId | string | no | Only with scope project |
root | string | no | What you enumerated (a tree, a region, a query) |
nUniverse | integer | no | Candidates found |
nCovered | integer | no | Of those, how many you ingested |
complete | boolean | no | True only if you ingested every candidate |
note | string | no | |
sourceEngine | string | no | |
sourceSession | string | no | |
sourceMachine | string | no |
Example call:
{"name":"memory_cover","arguments":{"domain":"<domain>"}}
Related: memory_write, memory_list, memory_supersede, memory_forget, memory_purge, memory_about, memory_what_happened, memory_coverage.
memory_coverage
List the coverage sweeps you may see in this organization, newest first: what was swept (domain, root), how much (nUniverse, nCovered, complete) and when. Use it to decide whether a domain needs a sweep before you trust an unknown. 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).
| Parameter | Type | Required | Description |
|---|---|---|---|
domain | string | no | |
scope | "org" \ | "project" \ | "persona" \ |
projectId | string | no | Include this project's sweeps (you must be able to view it) |
limit | integer | no |
Example call:
{"name":"memory_coverage","arguments":{}}
Related: memory_write, memory_list, memory_supersede, memory_forget, memory_purge, memory_about, memory_what_happened, memory_cover.
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).
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | Knowledge entry id (uuid) |
reason | string | yes |
Example call:
{"name":"memory_forget","arguments":{"id":"<id>","reason":"<reason>"}}
Related: memory_write, memory_list, memory_supersede, memory_purge, memory_about, memory_what_happened, memory_cover, memory_coverage.
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).
| Parameter | Type | Required | Description |
|---|---|---|---|
scope | "org" \ | "project" \ | "persona" \ |
kind | "fact" \ | "decision" \ | "preference" \ |
projectId | string | no | |
tags | string[] | no | |
includeHistory | boolean | no | |
includeExpired | boolean | no | |
dueForReview | boolean | no | |
limit | integer | no | |
after | string | no | nextCursor 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_about, memory_what_happened, memory_cover, memory_coverage.
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).
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | Knowledge entry id (uuid) |
reason | string | yes |
Example call:
{"name":"memory_purge","arguments":{"id":"<id>","reason":"<reason>"}}
Related: memory_write, memory_list, memory_supersede, memory_forget, memory_about, memory_what_happened, memory_cover, memory_coverage.
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).
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | Knowledge entry id (uuid) |
expectedSha | string | yes | bodySha256 of the entry you are replacing |
body | string | yes | |
title | string | no | |
tags | string[] | no | |
reviewAfter | string | no | |
expiresAt | string | no |
Example call:
{"name":"memory_supersede","arguments":{"id":"<id>","expectedSha":"<expectedSha>","body":"<body>"}}
Related: memory_write, memory_list, memory_forget, memory_purge, memory_about, memory_what_happened, memory_cover, memory_coverage.
memory_what_happened
The chronology of what this organization learned about a subject, newest first, INCLUDING superseded versions (each tagged created or superseded) so you can see how a belief changed. Same answered/unknown/out_of_coverage status as memory_about. 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).
| Parameter | Type | Required | Description |
|---|---|---|---|
subject | string | yes | |
since | string | no | ISO timestamp: only events at or after this time |
domain | string | no | |
projectId | string | no | |
match | "all" \ | "any" \ | "websearch" |
limit | integer | no |
Example call:
{"name":"memory_what_happened","arguments":{"subject":"<subject>"}}
Related: memory_write, memory_list, memory_supersede, memory_forget, memory_purge, memory_about, memory_cover, memory_coverage.
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).
| Parameter | Type | Required | Description |
|---|---|---|---|
scope | "org" \ | "project" \ | "persona" \ |
projectId | string | no | Required for project scope |
kind | "fact" \ | "decision" \ | "preference" \ |
title | string | yes | |
body | string | yes | At most 8000 bytes |
tags | string[] | no | |
sourceKind | "human" \ | "agent" \ | "ticket" \ |
sourceId | string | no | |
reviewAfter | string | no | ISO timestamp |
expiresAt | string | no | ISO timestamp |
confidence | number | no | How sure you are, 0..1 (omit = unstated) |
sourceEngine | string | no | Which engine learned it, e.g. claude or codex |
sourceSession | string | no | Your session or run id |
sourceMachine | string | no | The machine it was learned on |
clientRequestId | string | no |
Example call:
{"name":"memory_write","arguments":{"scope":"org","kind":"fact","title":"<title>","body":"<body>"}}
Related: memory_list, memory_supersede, memory_forget, memory_purge, memory_about, memory_what_happened, memory_cover, memory_coverage.