Skip to main content
Glama

get_stats

Retrieve database statistics for conversations, file events, and memories, optionally filtered by project, to monitor stored context and activity.

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": "get_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNo项目名称(可选)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.2/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 largely fails it. The verb '获取' implies a read-only operation and the parenthetical hints at return content, but it says nothing about whether 'project' scopes the counts, whether results are global by default, whether it is cheap or potentially expensive, or what the response structure looks like.

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 short sentence with the purpose front-loaded and zero padding or repetition. It is efficient, though the parenthetical metric list is the only structure present and the phrasing is terse to the point of being a fragment.

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?

This is a simple read-only tool with no required parameters and no output schema, so the description need not explain return structure in depth and does hint at the counted entities. However, for a stats tool where scoping matters, it omits whether the optional project filter limits the numbers and what the default scope is, leaving a meaningful gap.

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 coverage is 100%, with the single 'project' parameter documented as an optional project name, so the baseline is 3. The description adds no information about how filtering by project changes the counts, leaving the schema to do all the work.

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 ('获取数据库统计信息') and enumerates the metrics returned (conversation, file-event, and memory counts). This lets an agent distinguish it from sibling read tools like get_memories or get_recent_conversations, which return records rather than aggregate counts, though the description never explicitly contrasts them.

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?

The listed metrics imply the tool's use case — getting an overview or counting totals — but there is no explicit when-to-use statement, no conditions for choosing it over get_memories/get_file_events, and no guidance on when a count is preferable to fetching records. Usage is left to inference.

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