Skip to main content
Glama

Octolane

memory_upsert

DestructiveIdempotent

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

NameRequiredDescriptionDefault
idNoBlock ID to update. Omit to create a new block.
scopeYesOnly 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.
titleNoOnly 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.
contentYesThe full text content of the memory block. Plain text, max 8000 chars.
categoryYesOnly 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_idNo
session_idNoThe 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_typeNoScope the block to a CRM entity. Requires entity_id.
activation_tagsNoApplicability 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.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (destructive, idempotent, non-read-only), the description discloses the admin requirement for org-scope writes, that scope and category are frozen on update so a block cannot be converted or renamed, and — most importantly — an OUTCOME contract: check `saved` before confirming, and a matched custom write can return `saved: false` with a different block's id/title/content. That last point is exactly the kind of non-obvious behavior an agent would otherwise misreport.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action and mode split, then usage triggers, then the outcome contract — a sensible ordering. It runs long and repeats in prose what the schema descriptions already state verbatim about scope/category being fixed on update, which is the main wasted space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With nine parameters and no output schema, the description does the heavy lifting on return-value interpretation (`saved`, returned id/title/content), which is the highest-risk gap and it closes it well. It stops short of explaining entity scoping and activation_tags retrieval semantics, so a caller still needs the schema for those, but for the core create/update decision the definition is complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 89%, so the schema already carries the parameter burden — including the 'IGNORED on an update' notes for scope and category that the description restates. The description adds little parameter meaning beyond that, and it never touches entity_id, entity_type, session_id, or activation_tags, whose non-trivial semantics live only in the schema. Baseline 3 is correct.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb-plus-resource statement, "Create a new memory block or update an existing one (pass `id` to update)", and immediately disambiguates the two modes the single tool supports. An agent can tell this apart from the read-side siblings (memory_list, memory_get) without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit positive triggers with concrete examples ('remember that our ICP is seed-stage SaaS'), an explicit exclusion ('Never use this for transient chat notes'), and a decision rule for the scope parameter (org for shared workspace context, user for personal context) including the admin-privilege prerequisite. This is the when/when-not/alternative guidance pattern at full strength.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources