Skip to main content
Glama

Update ai memory item

update_ai_memory_item
Idempotent

Update a memory note (partial — only the provided fields change). Pass null to clear project_id/category/entity_type/entity_id.

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": {
      "id": "<id>"
    },
    "name": "update_ai_memory_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesMemory item UUID
nameNo
contentNo
categoryNo
metadataNoStructured payload (replaces the whole object); pass null to clear. For recurring_error see create_ai_memory_item.
entity_idNo
project_idNoReassign project scope; pass null to make it tenant-wide
entity_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare non-read-only, idempotent, non-destructive, so the description is not obligated to restate safety. It does add genuinely new behavior: partial semantics and the null-to-clear convention for four fields, which an agent could not infer from annotations. It stops short of saying whether clearing is reversible or what the response contains.

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

Conciseness5/5

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

Two short sentences, no filler, with the partial-update rule front-loaded and the null convention as a second, distinct clause. Every phrase carries information an agent needs before calling.

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?

For an 8-parameter mutation with no output schema, the definition covers the riskiest ambiguity (partial vs full update) and the clearing convention. Remaining gaps — name/content semantics and return shape — are minor given the annotations and the metadata description already in the schema.

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 coverage is only 38%, so the description needs to compensate and does so partially: it explains null semantics for project_id, category, entity_type and entity_id. It says nothing about name or content (e.g., uniqueness, length, overwrite), and metadata behavior is documented only in the schema, not the description.

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?

States a specific verb and resource ("Update a memory note") and immediately clarifies the update mode ("partial — only the provided fields change"). It does not name a sibling such as create_ai_memory_item to contrast against, so differentiation is left to the tool name.

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

Usage Guidelines3/5

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

The parenthetical makes clear this is a patch-style edit rather than a replacement, which implicitly routes agents away from create/delete. There is no explicit when-to-use/when-not guidance or named alternative for cases like full replacement.

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