Skip to main content
Glama

memory_consolidate

Promotes eligible short-term memories to long-term storage; pass a sessionId to consolidate an entire conversation session in one batch.

Instructions

把够格的短期记忆升级为长期记忆;给 sessionId 表示整会话批量执行。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "memory_consolidate"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
sessionIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It discloses that this is a state-mutating promotion and that passing sessionId switches to batch mode, but it says nothing about what happens to the source short-term entries (deleted, retained, or marked), whether the operation is idempotent or reversible, or what permissions or failure modes apply.

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?

A single front-loaded clause with the mode switch appended after a semicolon — no filler, and the primary operation comes first. It is arguably too terse given the tool's complexity, but there is no wasted wording.

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

Completeness2/5

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

For a mutation tool with zero annotation coverage, no output schema, and 0% schema description coverage, the description is far too thin. An agent still cannot tell what determines 'qualified', what the call returns, whether source records survive, or what a no-argument call does.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate for both parameters. It usefully explains that sessionId means 'batch execution for the entire session', establishing the id-vs-sessionId mode distinction, but it never explains the 'id' parameter's referent, and since required is 0, the behavior when neither or both parameters are supplied is left entirely undefined.

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 description names a specific verb and state transition: 'upgrade qualified short-term memories into long-term memories' (把够格的短期记忆升级为长期记忆), which is distinct from sibling write tools like memory_append or memory_record. It does not explicitly name a sibling to contrast with, and the qualifier '够格的' (qualified) is left undefined, but the core operation is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only usage signal is the implication that a caller should invoke this when short-term memories 'qualify', but the qualification criteria are never stated. There is no guidance on when consolidation is appropriate versus leaving memories short-term, no prerequisites, and no mention of alternatives such as memory_touch or memory_record.

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