Skip to main content
Glama

memory_upsert

Store a durable fact, decision, constraint, or preference for a project so AI agents retain long-term context across sessions.

Instructions

Store a durable fact, decision, constraint or preference.

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": {
      "project_id": "<project_id>",
      "memory_type": "<memory_type>",
      "content": "<content>"
    },
    "name": "memory_upsert"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYes
confidenceNo
importanceNo
project_idYes
memory_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It never explains upsert semantics (insert vs. overwrite on duplicate), what happens to an existing memory with the same content, permission requirements, or idempotency — the very behavior the name 'upsert' implies. Only the vague qualifier 'durable' adds any behavioral signal.

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

Conciseness3/5

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

The single sentence is front-loaded and free of filler, which is good. However, for a five-parameter write tool with no annotations, one sentence is undersized rather than economical, so conciseness here trades against clarity.

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

Completeness2/5

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

With no annotations, no output schema, and 0% parameter coverage, the description is the only documentation and it omits mutation semantics, field meanings, and return behavior. Given the tool's write nature and five parameters, this is not sufficient for correct invocation.

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

Parameters2/5

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

Schema description coverage is 0% across 5 parameters. The description enumerates content categories that loosely map to memory_type, but says nothing about project_id, memory_type allowed values, or what the confidence (default 10) and importance (default 5) integers control. An agent must guess the scale and meaning of the numeric fields.

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

Purpose4/5

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

The description gives a specific verb ('Store') plus the class of resource stored (durable fact, decision, constraint, preference), so an agent knows this writes memory rather than reading it. It does not name or distinguish itself from siblings such as memory_deprecate or memory_search, keeping it below a 5.

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

Usage Guidelines2/5

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

There is no guidance on when to call this versus memory_search (retrieval) or memory_deprecate (invalidation), and no prerequisites or exclusions. The word 'durable' hints at persistence intent but does not tell the agent when a fact is worth storing.

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