store
Save a memory with metadata such as project, scope, and tags so AI agents retain context across sessions. Redacts credentials automatically and supports duplicate overwrite.
Instructions
Store a memory with optional context metadata.
Args:
content: The information to remember.
project: Cortical region — project name for scoped retrieval.
language: Programming language context.
scope: Engram cluster — domain scope (e.g. "auth", "database").
memory_type: Memory system (episodic/semantic/procedural/prospective).
tags: Comma-separated tags for categorization.
source: Which tool stored this ("copilot", "cursor", etc.).
overwrite: If True and content is a near-duplicate of an existing
memory, replace the old memory instead of rejecting. The
response will include "replaced": <old_parent_id> and
"status": "updated".
agent_id: Namespace of the storing agent or bot. Memories stored
with an agent_id are private to that agent; without one they
are shared with every agent. Defaults to the server's
MYELIN_AGENT_ID setting.
relations: JSON-encoded list of [subject, predicate, object] triples
to assert as relationship edges immediately, e.g.
'[["AuthService","depends_on","JWTHelper"]]'.
Malformed input is silently ignored so it never blocks the store.
Returns:
JSON with memory ID on success, or rejection reason. Credentials in
the content (API keys, private keys, passwords in URLs) are replaced
with [REDACTED:<kind>] before it is stored; the response then
lists the kinds under "redacted".
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"content": "<content>"
},
"name": "store"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| scope | No | ||
| source | No | ||
| content | Yes | ||
| project | No | ||
| agent_id | No | ||
| language | No | ||
| overwrite | No | ||
| relations | No | ||
| memory_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |