Skip to main content
Glama

Logger Clear

logger_clear

Permanently deletes logs for a specified level and module on an fnOS NAS. This irreversible write operation clears log data and cannot be undone.

Instructions

清除指定级别/模块的日志(危险写操作,不可恢复)。

Input Schema

NameRequiredDescriptionDefault
hostNoNAS 主机地址(IP 或域名)
portNoNAS 端口,如 5667(HTTPS)/5666(HTTP)/443
levelYes日志级别,如 info/warning/error
moduleYes模块名
schemeNo传输协议
profileNo独立 session profile 名称,默认使用 default

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that this is a dangerous write operation and that the result is irreversible, which is critical for a clear tool. It does not state permission requirements, whether the operation is scoped to a host/session, or what exactly is lost beyond the level/module scope.

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?

The description is a single front-loaded sentence with zero waste. The destructive warning is compactly embedded without diluting the core action.

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-value details are unnecessary. The description correctly states the destructive and irreversible nature, but given no annotations and a six-parameter mutation tool, it omits prerequisites such as required authentication or host/session assumptions, leaving some contextual gaps.

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%, so the schema already documents all six parameters clearly, including host, port, scheme, and profile. The description mentions 'level/module' but adds no syntax, format, or selection meaning beyond what the schema provides.

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 gives a specific verb and resource: '清除...日志' (clear logs), scoped by level/module. This clearly separates it from sibling logging tools like logger_list and logger_export. However, it does not explicitly name those alternatives to help the agent distinguish contexts.

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 provides no guidance on when to use this tool versus alternatives such as logger_list, logger_export, or logger_archive_query. The warning '危险写操作,不可恢复' is a behavior disclosure, not a usage condition or exclusion.

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

Deploy Server

Other Tools