Skip to main content
Glama
oemoem12

lmstudio-agent-mcp

by oemoem12

agent_memory_save

Idempotent

Save key-value memory entries to disk for cross-session recall. Enables persisting important information between agent sessions.

Instructions

Persist a key/value memory entry to disk for cross-session recall.

Each entry stores: key, value, category, tags, created_at, updated_at. Memory is kept in a JSON file and is safe to read concurrently.

Args: key: Unique identifier for the entry. value: Content to remember. category: Logical bucket for the entry. tags: Optional list of tags for retrieval filtering. overwrite: If False, fail when the key already exists.

Returns: str: JSON with keys 'success', 'key', 'category', 'tags', 'operation' ('created' or 'updated').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesUnique key to identify this memory entry.
tagsNoOptional list of tags for retrieval filtering.
valueYesContent to remember.
categoryNoLogical bucket for the entry (e.g. 'user_preference', 'project_note').general
overwriteNoIf False, fail when the key already exists.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

The description adds valuable behavioral context beyond annotations: storage in a JSON file, safe concurrent reads, and the overwrite parameter's failure condition. It also clarifies the operation type ('created' or 'updated'). This complements the idempotentHint and destructiveHint annotations without contradicting them.

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?

The description is well-structured with a clear opening purpose, a brief data model note, and labeled sections for Args and Returns. The 'Each entry stores' sentence is slightly redundant but harmless. It is concise enough while providing necessary details.

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?

With a full input schema, annotations, and an output schema, the description covers the core behavior, persistence model, parameter semantics, and return format. It explains the overwrite edge case and operation result. This is complete enough for an agent to invoke the tool correctly without needing additional context.

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

Parameters3/5

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

The input schema describes all five parameters with 100% coverage. The description's Args section essentially repeats the schema text without adding new meaning. Since schema coverage is high, the baseline of 3 applies, and the description doesn't elevate it further.

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 starts with a specific verb+resource+outcome: 'Persist a key/value memory entry to disk for cross-session recall.' This clearly differentiates it from sibling tools like load, search, or delete. The purpose is unmistakable and avoids ambiguity.

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?

The phrase 'for cross-session recall' implies the appropriate context for using this tool. It doesn't explicitly name alternatives or exclusions, but the sibling tool names (load, search, delete) make the complementary usage clear. The guidance is implicit but sufficient for selection.

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/oemoem12/lmstudio-agent-mcp'

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