Skip to main content
Glama

Update ai memory

update_ai_memory
Idempotent

Update an existing AI memory note (partial — only provided fields change).

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": {
      "memory_id": "<memory_id>"
    },
    "name": "update_ai_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNo
datetimeNoISO timestamp.
entity_idNoRe-scope to this entity row.
memory_idYesUUID of the memory to update.
descriptionNo
entity_typeNoRe-scope to this entity kind (pair with entity_id).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=true. The description adds the meaningful behavioral fact that only supplied fields are changed, which is consistent with idempotency. It does not disclose the side effects of re-scoping via entity_id/entity_type, which would have earned a 5.

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?

A single front-loaded sentence with a parenthetical that carries the most important semantic detail; there is no filler to remove.

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

Completeness3/5

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

With six parameters, a partial annotation set and no output schema, the definition covers the core update semantics but omits re-scoping consequences and the distinction from the 'update_memory' sibling. It is minimally adequate rather than 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 coverage is 67%, and the schema already documents memory_id, entity_id, entity_type and datetime. The description contributes one genuinely useful cross-parameter rule (omitted fields are left unchanged), but says nothing about how entity_type and entity_id must be paired or what changing them does to the note.

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 states a specific verb and resource ('Update an existing AI memory note') and adds the PATCH semantics in parentheses. It does not differentiate itself from the similarly named sibling 'update_memory', leaving a real ambiguity for the agent.

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?

Usage is only implied by the name and the partial-update note; there is no statement of when to prefer this over 'update_memory' or 'create_ai_memory', and no preconditions (e.g. the memory must already exist) are given.

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