Skip to main content
Glama

deepmem_write

Write conversation messages to DeepMemory for fact extraction and persistent storage. Messages are processed by an LLM to extract structured memories, which are then embedded and stored in a vector database for later semantic search.

Set infer=True to enable LLM fact extraction (produces richer memories but costs one LLM call). Set infer=False to store raw messages without extraction.

Returns a list of memory IDs for successfully stored facts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inferNo
run_idNo
api_keyNo
user_idNodefault
agent_idNo
messagesYes

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It reveals the LLM processing pipeline, the optional infer mode with its cost, persistent storage, and the return of memory IDs. It does not cover permissions or potential side effects, but it offers substantial context beyond a bare write operation.

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?

The description is concise and well-structured, with two short paragraphs. It front-loads the core purpose, then details the key option, and closes with return value. Every sentence adds value with no fluff.

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?

Given the tool's moderate complexity, the description effectively covers the main operation, the infer distinction, and the return list of IDs. It lacks details on authentication (api_key) and scoping (user_id, agent_id), which are present in the schema but not explained, making it mostly complete but not fully comprehensive.

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?

While the description explains the infer parameter in detail, the schema has 6 parameters and schema description coverage is 0%. The description provides no meaning for run_id, api_key, user_id, agent_id, or messages beyond the overall context. It compensates only for infer, leaving the other five parameters unexplained, which is insufficient for low coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool writes conversation messages to DeepMemory for fact extraction and persistent storage, using a specific verb and resource. It distinguishes itself from the sibling deepmem_search by focusing on the write/storage operation rather than retrieval.

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 description explains the core behavior and the infer parameter trade-off but does not explicitly state when to prefer this tool over deepmem_search or any other alternative. Usage is implied rather than directly stated, and no exclusions or prerequisites are mentioned.

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.

TDQS

A4.1/5.0
Disambiguation5/5

The two tools have completely distinct purposes: one searches existing memories, the other writes new ones. No overlap or ambiguity exists between them.

Naming Consistency5/5

Both tools follow a consistent pattern: 'deepmem_' prefix plus a verb (search, write). This is uniform and predictable.

Tool Count3/5

With only 2 tools, the server is minimal but covers its core purpose of memory storage and retrieval. It feels slightly sparse but is not inappropriate for a focused memory server.

Completeness4/5

The server covers the essential lifecycle of memories: writing and searching. However, there is no explicit delete or update operation, which are minor gaps for a persistence layer.