Skip to main content
Glama

memory_stats

Retrieve statistics on stored memories, including total notes, sessions, links, and date ranges, to monitor and audit your memory store.

Instructions

Get statistics about stored memories: total notes, sessions, links, date range, etc.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.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 must carry the whole behavioral burden. "Get statistics" signals a read-only, non-mutating operation and the sentence names the kinds of values returned, but the trailing "etc." leaves the exact result shape undefined and there is no note on cost, pagination, or scope of the counting.

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 sentence with the verb and resource first and the returned metrics following. It is efficient, with only the vague "etc." costing a point.

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?

This is a simple, zero-parameter read tool, and the description tells the agent it returns counts and a date range. Because there is no output schema, an exact field list would be better, but the enumeration given is close to sufficient for an agent to decide whether to call it.

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?

The tool takes zero parameters, so the baseline is 4; there is nothing about arguments the description could usefully add. The listed statistics describe output rather than inputs, which is appropriate here.

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?

"Get statistics about stored memories" pairs a specific verb with a specific resource and enumerates the reported dimensions (total notes, sessions, links, date range), which is enough to distinguish it from memory_search or memory_export. It stops short of explicitly contrasting with a sibling, so it is clear but not maximally differentiated.

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 only implied: an agent can infer this is the overview/summary call to run before searching or exporting, but the description never says when to prefer it or when another tool (e.g., memory_search) is the better choice. No prerequisites or exclusions are stated.

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