Skip to main content
Glama

memory_snapshot

Retrieves the latest read-only state snapshot and returns a retention report with state fingerprint, retention statistics, and policy status for reconciliation and inspection.

Instructions

取最新状态快照并返回留存报告(只读):含当前状态指纹、 快照留存统计与保留策略情况,用于对账与巡检。

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_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and explicitly declares the operation is read-only (只读), which is the key safety trait for this zero-parameter tool. It also describes what the returned report contains, though it does not discuss edge cases such as missing snapshots 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 single sentence is front-loaded with the core action and resource, then adds the read-only constraint, report contents, and intended use case. Every clause adds useful information without repetition or filler.

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?

The tool is simple (zero parameters), an output schema exists, and the description still summarizes the return contents and read-only nature. It is nearly complete, with only minor gaps around sibling selection and edge-case behavior.

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?

There are zero input parameters, so the schema provides no parameter semantics to supplement. The baseline for a parameterless tool is 4, and nothing in the description needs to clarify inputs.

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 uses a specific verb-resource pair: fetch the latest state snapshot and return a retention report, with concrete contents (state fingerprint, retention statistics, retention policy status). This clearly differentiates it from event- or replay-oriented siblings, but it does not explicitly name an alternative tool or state what it is not.

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?

It gives a clear usage context: reconciliation and inspection (对账与巡检). However, it does not specify when to prefer memory_events, memory_replay, or other siblings, and it provides no exclusions or prerequisites.

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