Skip to main content
Glama

memory_stats

Retrieve local ZeroMem database counts for documents, segments, facts, revised facts, and namespaces without invoking an LLM; optionally filter by namespace.

Instructions

Return local ZeroMem database counts (documents, segments, facts, revised facts, and available namespaces) without invoking an LLM.

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
namespaceNoOptional namespace filter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully discloses that no LLM call is made (implying low cost/latency) and that the data is a local database, but it never states whether counts are exact or approximate, whether the call is strictly read-only, or who may call it.

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 no filler; the parenthetical enumeration of counters is load-bearing because it substitutes for a missing output schema. Nothing is repeated or wasted.

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?

For a low-risk stats reader with one optional filter and no output schema, the definition covers what is counted and the no-LLM behavior, which is what an agent needs to select it. Minor gaps around read-only guarantees and count accuracy keep it short of complete.

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% and there is a single optional namespace parameter already documented in the schema. The description never mentions namespace filtering, so it adds nothing beyond the schema — baseline 3 applies.

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 resource ("Return local ZeroMem database counts") and enumerates the exact counters produced (documents, segments, facts, revised facts, namespaces). It implicitly distinguishes itself from the recall/remember siblings by stating it works "without invoking an LLM", though it never names an alternative tool explicitly.

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?

There is no explicit statement of when to call this versus the sibling memory tools, nor any stated precondition. The clause "without invoking an LLM" implies a cheap diagnostic/inspection use case, but that is inference rather than guidance.

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