Skip to main content
Glama

update_ai_memory_item

DestructiveIdempotent

Update an AI memory item (partial). Stamps updated_at. Set entity + entity_id to re-attach a note to a record (e.g. entity='lead', entity_id=); pass entity_id null to make it tenant-wide. category is a free topical label. occurred_at (ISO) = the fact's original date in its source system. Use this to fix mis-scoped notes instead of delete+recreate. (Legacy: parent_id is accepted as 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": {
      "item_id": "<item_id>"
    },
    "name": "update_ai_memory_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName of the AI memory item
entityNolead|contact|account|campaign|user|asbest_project|raumbuchung_booking; null = tenant-wide
sourceNoWhere the fact comes from (provenance)
contentNoNew text content of the memory item
item_idYesID of the item to change
categoryNoFree topical label
entity_idNoRecord id to attach to; null = tenant-wide
parent_idNoLegacy alias for entity_id
occurred_atNoISO date the fact originated in its source system

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / category / description
      Added value: +"Free topical label"
    • addedInput schema / properties / content / description
      Added value: +"New text content of the memory item"
    • addedInput schema / properties / item_id / description
      Added value: +"ID of the item to change"
    • addedInput schema / properties / name / description
      Added value: +"Name of the AI memory item"
    • addedInput schema / properties / source / description
      Added value: +"Where the fact comes from (provenance)"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, but the description adds meaningful side-effect detail: updated_at is stamped automatically, and passing entity_id null widens the note to tenant-wide scope. The one thing not disclosed is that destructiveHint applies even though only supplied fields change, which an agent might otherwise read as harmless.

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?

Information-dense with the primary behavior first ('partial', updated_at stamp) followed by per-parameter semantics, so it front-loads what matters. The parenthetical legacy note at the end is slightly tacked-on but earns its place for agents seeing all 9 parameters.

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 a 9-parameter, mutation-only tool with annotations but no output schema, the description covers the tricky scoping parameters and the fallback-to-tenant-wide behavior well. The remaining gap is the response shape — whether the updated item is echoed back — which nothing else supplies.

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

Parameters4/5

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

With schema coverage at 100%, the baseline is 3, but the description adds relational meaning the schema cannot: entity and entity_id must be set together to re-attach a note, and entity_id null explicitly means tenant-wide. It also calls out parent_id as a legacy alias for entity_id, which helps the agent avoid setting both.

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 an AI memory item') and flags the update as partial, so the agent knows full replacement is not required. It also contrasts the operation with the delete+recreate pattern, though it never names the create/delete/list memory siblings directly.

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

Usage Guidelines4/5

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

Gives an explicit use case: 'Use this to fix mis-scoped notes instead of delete+recreate,' which is real routing guidance against an alternative approach. It lacks an explicit when-not clause (e.g., use create_ai_memory_item for brand-new facts), so it stops short of full coverage.

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.