Skip to main content
Glama

Create ai memory item

create_ai_memory_item

Save a freeform memory note the assistant can recall in later sessions. Omit project_id for a tenant-wide note, or set it to scope the note to one project. Optionally attach it to any specific entity (entity_type + entity_id, e.g. a ticket or customer) and classify it with category. For a recurring error, set category='recurring_error' and pass a structured metadata object — new tickets are then auto-matched against it (see match_recurring_errors).

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

Input Schema

NameRequiredDescriptionDefault
nameYesShort label for the note
contentYesThe note text to remember
categoryNoOptional classification, e.g. 'preference', 'fact', 'instruction', 'recurring_error'
metadataNoOptional structured payload. For category='recurring_error': { markers: string[] (customer phrasings/symptoms to auto-match new tickets against), check_steps: [{command, meaning}] (ordered), causes: [{cause, proven_on}], not_helpful: string[], status: 'vermutet'|'belegt'|'behoben' }.
entity_idNoOptional UUID of that entity (pair with entity_type)
project_idNoOptional project UUID to scope the note to; omit for a tenant-wide note
entity_typeNoOptional kind of entity this note is about, e.g. 'ticket', 'customer', 'invoice'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare a non-read-only, non-destructive, non-idempotent mutation. The description adds genuine value by disclosing that notes persist into later sessions and that recurring_error notes cause new tickets to be auto-matched — a side effect outside this call. It omits that non-idempotent creation means retries can duplicate notes, and says nothing about what is returned.

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?

Four sentences, front-loaded with the core action and its recall purpose, then scoping and the specialized recurring_error path. Dense but each sentence carries distinct information; no filler.

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 7-parameter, nested-metadata create tool with no output schema and full schema coverage, the description covers scoping, entity attachment, classification, and the cross-tool side effect. The remaining gap is that with no output schema the agent isn't told what the call returns (e.g., the new note's ID).

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?

Schema coverage is 100%, so the baseline is 3; the description still earns above that by explaining the meaning of omitting project_id, the required pairing of entity_type with entity_id, and the workflow significance of category='recurring_error' plus the metadata payload.

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 ('Save a freeform memory note') plus the reason it exists ('the assistant can recall in later sessions'). It does not distinguish itself from update_ai_memory_item or delete_ai_memory_item, so the create-vs-modify boundary is left implicit.

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 concrete conditional guidance: omit project_id for tenant-wide, set it to scope, optionally attach to an entity via entity_type + entity_id, and use category='recurring_error' when the note is a recurring error. It names the downstream tool (match_recurring_errors) for the auto-match flow, though it never states when to prefer update_ai_memory_item over creating a new note.

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