memory_upsert
Create a new memory block or update an existing one (pass id to update). Use when the user explicitly asks to save context that should persist across AI turns - e.g. 'remember that our ICP is seed-stage SaaS', 'save this as my writing style', 'note that Acme evaluates quarterly'. Prefer org-scope for shared workspace context (ICP, pricing, process) and user-scope for personal context (writing style, signature). Org-scope writes require admin privileges. Never use this for transient chat notes - memory is for durable, curated context, not conversation facts. Passing id updates that exact block: its scope and category are fixed, so the ones you send are ignored and cannot convert a block or rename it. OUTCOME: check saved before telling the user it worked. A custom write can be matched to an existing block and kept unchanged, which returns saved: false with that block's id, title and content - report what is actually stored, not the wording you asked for, and pass the returned id back if you mean to overwrite it.
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": {
"scope": "<scope>",
"category": "<category>",
"content": "<content>"
},
"name": "memory_upsert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Block ID to update. Omit to create a new block. | |
| scope | Yes | Only used when creating (no id). 'org' requires admin privileges; 'user' is private to the current user. IGNORED on an update: the block you name with `id` keeps its own scope, and a block's scope cannot be changed. | |
| title | No | Only ever applied to a custom block. Required when creating one. Updating one: omit this to keep the stored title; an empty or blank value is rejected, because a title cannot be cleared. Updating a FIXED-category block: whatever you send is ignored - those always use their category label - and the response says the title was not applied. Read block.title rather than assuming yours landed. | |
| content | Yes | The full text content of the memory block. Plain text, max 8000 chars. | |
| category | Yes | Only used when creating (no id). Fixed categories (sales_icp, pricing, writing_style, etc.) replace their existing system block; use 'custom' for free-form user-authored blocks. IGNORED on an update: the block you name with `id` keeps its own category, so this cannot convert a block or retitle it. Check block.category in the response. | |
| entity_id | No | ||
| session_id | No | The ID of the task this call belongs to. Leave it out on your first call. On every later call for the same task, send the ID an earlier result gave you, and pass it to any subagent working on that task. | |
| entity_type | No | Scope the block to a CRM entity. Requires entity_id. | |
| activation_tags | No | Applicability metadata: '*' matches any action within this block's entity scope; otherwise use action names (email_draft, deal_analysis, etc.). Octolane AI uses tags for retrieval. MCP clients must discover and read applicable blocks with memory_list and memory_get; tags do not automatically inject or enforce rules over MCP. |