Skip to main content
Glama

store

Save a memory with metadata such as project, scope, and tags so AI agents retain context across sessions. Redacts credentials automatically and supports duplicate overwrite.

Instructions

Store a memory with optional context metadata.

Args: content: The information to remember. project: Cortical region — project name for scoped retrieval. language: Programming language context. scope: Engram cluster — domain scope (e.g. "auth", "database"). memory_type: Memory system (episodic/semantic/procedural/prospective). tags: Comma-separated tags for categorization. source: Which tool stored this ("copilot", "cursor", etc.). overwrite: If True and content is a near-duplicate of an existing memory, replace the old memory instead of rejecting. The response will include "replaced": <old_parent_id> and "status": "updated". agent_id: Namespace of the storing agent or bot. Memories stored with an agent_id are private to that agent; without one they are shared with every agent. Defaults to the server's MYELIN_AGENT_ID setting. relations: JSON-encoded list of [subject, predicate, object] triples to assert as relationship edges immediately, e.g. '[["AuthService","depends_on","JWTHelper"]]'. Malformed input is silently ignored so it never blocks the store.

Returns: JSON with memory ID on success, or rejection reason. Credentials in the content (API keys, private keys, passwords in URLs) are replaced with [REDACTED:<kind>] before it is stored; the response then lists the kinds under "redacted".

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "content": "<content>"
    },
    "name": "store"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo
scopeNo
sourceNo
contentYes
projectNo
agent_idNo
languageNo
overwriteNo
relationsNo
memory_typeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so unusually well: it discloses that near-duplicate content is rejected unless overwrite is set (and names the 'replaced'/'status: updated' response fields), that credentials are silently redacted to [REDACTED:<kind>] and reported under 'redacted', that agent_id scoping makes memories private versus globally shared, and that malformed relations are silently dropped rather than erroring. These are exactly the mutation-safety and side-effect details an agent needs before invoking a write.

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 long but entirely structured as an Args block plus a Returns block, and each parameter entry adds distinct information rather than restating titles. Minor waste appears in decorative framing such as 'Cortical region' and 'Engram cluster', which add metaphor before the useful gloss, but overall it is front-loaded with the core action and easy to scan.

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 ten-parameter mutation tool with zero annotation coverage, the definition covers the important ground: required vs optional is clear, the dedup/overwrite path is explained, privacy scoping is explained, and redaction behavior is disclosed. It is slightly weaker on the fact that an output schema already exists (the Returns block partially duplicates it) and says nothing about failure/rejection modes beyond 'rejection reason' or about how stored memories are later retrieved.

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

Parameters5/5

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

Schema description coverage is 0% and all ten parameters carry only bare titles, so the description must compensate entirely — and it does, defining each parameter's meaning beyond its name: memory_type is enumerated as episodic/semantic/procedural/prospective, relations is documented as JSON triples with a concrete '[ ["AuthService","depends_on","JWTHelper"] ]' example, tags as comma-separated, and overwrite's exact response keys are spelled out. This is meaning an agent could not recover from the schema.

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?

The opening sentence pairs a specific verb ('Store') with a specific resource ('a memory') and adds the notion of optional context metadata, so an agent immediately knows this is a write path for persistent memory. It does not, however, distinguish itself from close siblings such as 'ingest' or 'consolidate', leaving the agent to guess which write path to choose.

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?

Usage is implied rather than stated: the description explains that overwrite exists for near-duplicates and that agent_id makes memories private, which hints at when those flags matter, but it never says 'use this when you want to persist a fact' or 'use recall to read it back' or when to prefer ingest. No explicit when/when-not or alternative selection guidance is present.

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