Skip to main content
Glama

memory_stats

Read-only

Retrieve a memory store overview showing total entries and counts by scope and status to audit stored data and track distribution.

Instructions

Store overview: total count, distribution by scope and by status.

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
tenantNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered by structured data. The description's only content is the return shape, which is redundant given an output schema exists, and says nothing about tenant scoping, whether stats are global vs filtered, or cost. Notably idempotentHint=false on what looks like a pure read is left unexplained.

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 front-loaded sentence with no filler; the returned metrics are listed in order of importance. Nothing could be cut without losing content.

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

Completeness3/5

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

With annotations covering the safety profile and an output schema covering return values, the description only needs to explain the tenant scoping and when to prefer this over sibling reporting tools — neither is present. Adequate but with a clear gap.

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?

There is one parameter, tenant, with 0% schema description coverage, and the description never mentions it. It is unclear whether passing a tenant narrows the counts or whether omitting it returns cross-tenant totals — a meaningful ambiguity for a stats tool.

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?

Names a specific resource (the memory store) and enumerates the exact output dimensions: total count, distribution by scope, distribution by status. An agent can immediately tell this is an aggregate-stats reader rather than a record lister like memory_recall or memory_flagged. It stops short of naming any sibling to differentiate against, which keeps it from 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 Guidelines2/5

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

The description gives no when-to-use guidance, no prerequisites, and no exclusions relative to the many sibling tools (memory_report, memory_audit_tail, memory_recall). The agent must infer that this is the cheap overview call before drilling into details.

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