Skip to main content
Glama

save_memory

Write a categorized memory entry to persist explicit project facts, decisions, discoveries, bugs, or instructions for later agent recall.

Instructions

Write a categorized memory entry.

Memory is intentionally structured and explicit — BlackBox does not automatically store everything.

Args: category: Memory category (project_facts, architectural_decisions, discoveries, bugs, failed_approaches, recommendations, agent_observations, user_instructions). value: JSON-serializable value to store. project: Optional project scope (e.g. absolute path). key: Optional human-readable key. tags: JSON list of tags for search/filtering. source_agent: Optional agent id that wrote this entry. metadata: JSON object of additional metadata.

Returns: JSON: {"ok": true, "entry": {...}}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyNo
tagsNo[]
valueYes
projectNo
categoryYes
metadataNo{}
source_agentNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it helpfully enumerates the eight allowed categories (not present as enums in the schema) and shows the return envelope. But it omits key mutation semantics: whether writing an existing key overwrites, dedup behavior, permission requirements, and side effects. Useful but incomplete for a write tool.

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?

Purpose is front-loaded in the first sentence, and the Args block earns its space given 0% schema coverage. The Returns section duplicates the existing output schema and could be trimmed, but overall the structure is efficient.

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 tool with no annotation coverage, the description covers purpose, all parameters, and the return shape, which is close to sufficient. The main gap is idempotency/overwrite behavior on duplicate keys, which an agent calling 'save' would want to know.

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 0%, so the description does the heavy lifting by documenting all seven parameters, including the category enumeration values and the meaning of project, key, tags, source_agent, and metadata. It reconciles somewhat with the string-typed schema by calling value/tags/metadata JSON-serializable, though the type mismatch (string vs list/object) is not fully clarified.

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 concrete verb+resource ('Write a categorized memory entry') that clearly separates it from the read/delete siblings (get_memory, search_memory, delete_memory). It does not explicitly name those alternatives, so it falls short of full sibling differentiation.

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 line 'BlackBox does not automatically store everything' implies the agent should call this deliberately rather than assume persistence, which is useful contextual guidance. However, it never states when to use this versus get_memory/search_memory or what triggers a save, leaving usage to inference.

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