Skip to main content
Glama

insert_memory

Store temporary session memories, observations, and decisions with auto-expiration. Memories last 7 days by default; customize expiry for short-term context.

Instructions

Store a short-term demo memory into demo.memories (ephemeral context that auto-expires). Use this to capture observations, decisions, session notes, or any context worth remembering temporarily. Memories last 7 days by default unless expires_at is set. For permanent knowledge, use memory_ingest instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesThe memory content to store. Be specific and include relevant context — this text is used for semantic search later.
sourceYes
session_idYesUnique identifier for the current session/conversation. Used to group related memories together.
tagsNoCategorization labels for filtering (e.g. ["decision", "architecture", "bugfix"])
expires_atNoCustom expiration time in ISO 8601 format (e.g. "2026-06-17T00:00:00Z"). Defaults to 7 days from now if omitted.
agent_bodyNoWhich persona/agent body this memory belongs to (e.g. "coco", "toto"). Defaults to the profile of this server.
environmentNoDeployment environment label (e.g. "production", "staging"). Defaults to MCP_ENVIRONMENT if set.
Behavior4/5

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

Discloses auto-expire after 7 days by default, custom expires_at option, and that it belongs to demo.memories. No annotations provided, so description carries burden. Missing details on auth requirements or idempotency, but key behaviors are covered.

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, no waste. Front-loaded with verb and resource. Every sentence adds value.

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?

Covers ephemeral nature, default expiry, and comparison to permanent memory. With no output schema, some info on return value would be helpful, but overall adequate for complexity.

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 description coverage is 86%, so baseline 3. Description adds useful context for 'body' (semantic search), but other parameters rely on schema descriptions. Slight extra value justifies 4.

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?

Description clearly states verb 'Store', resource 'demo.memories', and specifies ephemeral/auto-expire nature. Distinguishes from sibling 'memory_ingest' for permanent storage.

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

Usage Guidelines5/5

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

Explicitly says when to use: capture observations, decisions, session notes. Provides alternative: 'For permanent knowledge, use memory_ingest instead.'

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Marsmanleo/MarsNMe'

If you have feedback or need assistance with the MCP directory API, please join our Discord server