Skip to main content
Glama

logs_file

Fetches device file logs, including main_debug.log tail with complete RAW protocol dumps, and saves gzip-compressed logs to logs/ for direct grep debugging.

Instructions

拉设备文件日志(main_debug.log 尾部,含 RAW 协议转储的完整事实源;gzip 传输,落盘到 logs/ 供直接 grep)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "deviceId": "<deviceId>"
    },
    "name": "logs_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxKBNo
deviceIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It does disclose two real behavioral traits: gzip transfer and that the payload is written to disk under logs/, which is valuable side-effect information. But it says nothing about permissions, overwrite/cleanup of previously landed files, or how maxKB truncation affects the result — significant gaps for a tool that writes to disk.

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 compact sentence with the core purpose front-loaded and the parenthetical carrying the differentiating detail. Dense but every clause adds information; only minor cost is the nested parenthetical.

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?

The description covers what the tool fetches and where the result lands, which is the key fact given no output schema. It is still incomplete for a 2-param, no-annotation tool: deviceId expectations, maxKB semantics, and file overwrite behavior are all unaddressed.

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?

Schema description coverage is 0% and neither of the two parameters is explained. deviceId has no stated format (serial? id?), and maxKB — which controls how much of the log tail is pulled, with a 16–4096 range and 512 default — is never mentioned, so the agent cannot tell that truncation may hide the facts the tool promises.

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 (拉 = pull) and resource (设备文件日志, specifically the main_debug.log tail), and notes it is the full fact source for RAW protocol dumps. That distinguishes it reasonably from siblings like logs_tail, though it never names those siblings 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?

Usage is only implied: '落盘到 logs/ 供直接 grep' suggests it is the choice when you want a locally greppable file rather than a streamed tail. There is no explicit when-to-use / when-not guidance and no comparison to logs_tail or logs_fetch, which look like close alternatives.

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