Skip to main content
Glama

Store Memory

advanced_augmentation

Store durable user facts and preferences after responding to maintain context across sessions without SDK integration.

Instructions

Store durable facts and preferences after drafting a response. Call after responding to persist user context across sessions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_messageYesThe full user message
assistant_responseYesThe full assistant response

Implementation Reference

  • The handler for the advanced_augmentation tool, which forwards the request to a remote client.
      async ({ user_message, assistant_response }) => {
        try {
          const client = await getRemoteClient();
          const result = await client.callTool({
            name: "advanced_augmentation",
            arguments: { user_message, assistant_response },
          });
          return {
            content: (result.content as Array<{ type: "text"; text: string }>) || [
              { type: "text", text: "memory being created" },
            ],
          };
        } catch (error) {
          const message = error instanceof Error ? error.message : String(error);
          return {
            content: [
              {
                type: "text" as const,
                text: `Error storing memory: ${message}`,
              },
            ],
            isError: true,
          };
        }
      },
    );
  • src/index.ts:89-99 (registration)
    Registration and schema definition for the advanced_augmentation tool.
    server.registerTool(
      "advanced_augmentation",
      {
        title: "Store Memory",
        description:
          "Store durable facts and preferences after drafting a response. Call after responding to persist user context across sessions.",
        inputSchema: {
          user_message: z.string().describe("The full user message"),
          assistant_response: z.string().describe("The full assistant response"),
        },
      },
Behavior3/5

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

With no annotations provided, the description carries the full burden. It successfully conveys durability ('durable facts', 'across sessions') but omits critical behavioral details: whether calls are idempotent, if storage is additive or overwriting, limits, or error conditions.

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?

Extremely concise with two sentences containing zero waste. Front-loaded with the action ('Store durable facts') and immediately followed by timing guidance ('after drafting'). Every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Adequate for a 2-parameter tool without output schema. The description explains the cross-session persistence mechanism but, lacking annotations, should ideally disclose side effects, storage scope (per-user vs global), or relationship to the recall mechanism.

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 description coverage is 100%, establishing a baseline of 3. The description implies the parameters are used to extract facts for storage but does not explicitly map 'user_message' or 'assistant_response' to the extraction process or explain why both are required.

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 the tool stores 'durable facts and preferences' using specific verbs (store, persist) and identifies the resource (user context). It effectively distinguishes from sibling 'recall' by emphasizing the write operation ('Store') versus the implied read operation of the sibling.

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?

Provides explicit workflow guidance: 'Call after responding' and 'after drafting a response.' However, it lacks explicit reference to sibling 'recall' as the retrieval alternative, though this is implicitly clear from the contrasting action verbs.

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/MemoriLabs/mcp-memori'

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