Skip to main content
Glama

get_log_stats

Generate a log statistics report from a file path: file size, total lines, time range, level distribution, and top 5 frequent errors.

Instructions

生成日志统计报告:文件大小、总行数、时间范围、级别分布、高频错误 Top5。

Args: file_path: 日志文件绝对路径。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It reveals the output content but says nothing about whether the operation is read-only, how it behaves on huge files, whether the file must exist, or any performance/rate considerations.

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?

Purpose is front-loaded in a single dense sentence listing the report sections, followed by a compact Args block. No filler, though it is not maximally tight.

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?

An output schema exists, so return values needn't be re-explained, and the single-parameter surface is simple. However, the absence of any annotation or usage routing leaves the agent without guidance on when this tool is preferred over analyze_log.

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?

Schema description coverage is 0%, so the description must compensate. It documents the sole parameter as the absolute path of the log file (日志文件绝对路径), adding the 'absolute path' requirement that the schema (type string, title 'File Path') does not convey.

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+resource (生成日志统计报告 / generate log statistics report) and enumerates the exact report contents: file size, total lines, time range, level distribution, and Top 5 frequent errors. This clearly differentiates it from read_log_tail/head, search_log_keyword, and filter_log_by_level, though it never explicitly contrasts with the potentially overlapping analyze_log.

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 only states what the tool produces; it gives no guidance on when to choose it over analyze_log, analyze_error_text, or the other seven siblings. No prerequisites or exclusions are mentioned.

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