Skip to main content
Glama

memory_stats

Return counts for entries, topic cards, scope distribution, 7-day growth, refs, archive sessions, and audit lines to audit long-term memory health and traceability.

Instructions

Return counts for the memory store: entries, topic cards, scope distribution, 7-day growth, refs, archive sessions and audit lines.

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.1.0

TDQS

A3.5/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 behavioral burden, and it says nothing about the operation being read-only, its cost (scanning archive sessions and audit lines sounds potentially expensive), freshness of the counts, or rate limits. The enumeration of metrics substitutes for the missing output schema, but the safety and performance profile is entirely undisclosed.

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?

A single dense sentence, front-loaded with the verb and subject, followed by the metric list. Every clause contributes information and there is no 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?

With no input parameters and no output schema, the description does the necessary work by enumerating the returned metrics, which is the key thing an agent needs. It is only short on behavioral framing (read-only status, cost of computing archive/audit counts), which a no-annotation tool ideally should state.

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 schema has zero properties, so there are no parameters to describe; baseline is 4. Nothing in the description conflicts with the empty input 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?

States a specific verb ("Return counts") and resource ("the memory store"), then enumerates the exact metrics returned (entries, topic cards, scope distribution, growth, refs, archive sessions, audit lines). An agent can tell this apart from memory_get/recall/search because it produces aggregates rather than records. It doesn't name a sibling explicitly, so it falls short of a 5.

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: the agent can infer it should call this for an overview/counting need rather than to retrieve content. There is no explicit "use this when..." statement, no exclusion of alternatives, and no note on whether to prefer memory_search for drilled-down counts.

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