Skip to main content
Glama

Create ai memory item

create_ai_memory_item

Save an agent memory note. Pass 'mem_key' to make this an upsert — calling again with the same mem_key (+ same agent_id/brain_id) updates the existing note instead of creating a duplicate.

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": {
      "name": "<name>",
      "description": "<description>"
    },
    "name": "create_ai_memory_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
entityNo
mem_keyNo
agent_idNo
brain_idNo
entity_idNo
importanceNo
visibilityNo'private' notes are redacted from export_brain.
descriptionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=false). The description adds genuinely useful behavior beyond that by explaining the upsert/dedupe semantics of mem_key plus agent_id/brain_id, but it does not describe auth requirements, what fields get overwritten on update, or the response. There is also mild tension with idempotentHint=false, since a same-key upsert sounds repeatable, though an update could still mutate state such as timestamps, so this is not a clear contradiction.

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 sentences, front-loaded with the action and followed by the one non-obvious behavioral rule. No filler or restatement of the tool name.

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?

For a 9-parameter creation tool with no output schema and sparse schema descriptions, the definition is too thin. It omits required-field meaning, entity scoping, importance semantics, and return behavior, leaving the agent to infer most parameter usage.

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?

With 9 parameters and only 11% schema description coverage, the description carries most of the burden, yet it explains only 'mem_key' and its interaction with agent_id/brain_id. Required fields (name, description), entity/entity_id scoping, importance, and visibility are left undocumented or only implicitly covered by enum names.

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 names a specific verb and resource ('Save an agent memory note'), which is distinct from memory-list/delete and todo-item siblings. It doesn't explicitly contrast itself with those alternatives, but the core action is unambiguous.

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 only usage guidance is conditional: pass 'mem_key' to turn the call into an upsert scoped by agent_id/brain_id. There is no guidance on when to create a memory note versus listing or deleting one, and no prerequisites or exclusions are stated.

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