Skip to main content
Glama

memory_set

Writes or updates a key-value pair in a memory namespace, tracking write time and source session. Supports upsert and versioning.

Instructions

写入一条键值对到指定命名空间,自动记录写入时间和来源 session。若 key 已存在则覆盖(upsert),version 递增。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes条目键名,不含 /。如 "tech_stack"、"coding_conventions"。
valueYes条目值,可为 JSON 字符串或纯文本。
expireNo标记为已过期。PM 可在规范更新后标记旧条目。
projectNo目标项目的绝对路径(如 D:/code/project-a)。省略则使用当前项目。
namespaceYes命名空间路径,如 "project/meta"、"session/abc123/findings"。必须以 project/ 或 session/ 开头。
session_idNo来源 session ID,用于追踪。
Behavior4/5

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

With no annotations, the description carries full burden. It discloses upsert behavior, version increment, and automatic recording of write time and source session. However, it does not discuss side effects like potential size limits or permission requirements.

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 a single sentence that is front-loaded and concise, covering the essential behavior without unnecessary words.

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 set tool with 6 parameters and no output schema, the description covers the main action and upsert behavior. It lacks details on version semantics and expiration implications, but is reasonably complete.

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?

Schema coverage is 100% with each parameter described. The description adds overall context but does not provide additional meaning beyond the schema. Baseline 3 is appropriate given schema richness.

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 it writes a key-value pair to a namespace with upsert behavior and version increment. It distinguishes itself from sibling tools like memory_get (read) and memory_list (list) by being the write operation.

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 implies usage for storing data, but does not explicitly state when to use or when to avoid. It lacks exclusion criteria or alternatives, though the context of sibling tools provides some guidance.

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/FirenzeClaw/kimi-session-orchestrator'

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