Encode Memory
encode_memoryStore a single memory record in Memoreal Cloud (consumes 1 Write API call; non-idempotent: encoding identical text twice creates separate IDs until consolidate is run) and return { id, namespace, salience }. Defaults type to "episodic", salience to 0.5 (items >=0.7 or semantic/core surface in memory://rules), and namespace to "default" while rejecting reserved "org:" prefixes. Use when persisting one architectural decision, bug root cause, or user rule; use batch_encode instead for 2+ memories at once, or handoff_to_agent for cross-wing task handoffs.
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": {
"namespace": "<namespace>",
"content": "<content>"
},
"name": "encode_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Memory tier classification (core and semantic receive 1.5x/1.25x recall boosts). | episodic |
| content | Yes | Non-empty memory text to persist. | |
| context | No | Optional [key, value] string pairs (for example [["file", "src/auth.js"]]) targetable by delete_by_context. | |
| salience | No | Importance weight from 0.0 to 1.0 (use >=0.7 for durable team rules). | |
| namespace | Yes | Logical project or workspace namespace (defaults to "default"; never prefix with "org:"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Newly created memory UUID. | |
| salience | Yes | Stored salience weight (0.0-1.0). | |
| namespace | Yes | Resolved client namespace. |