Skip to main content
Glama

Clear Logcat

logcat_clear
DestructiveIdempotent

Clears the logcat buffer on a connected Android device to remove old log entries and isolate current debug output.

Instructions

Clear the logcat buffer on a connected Android device

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

Input Schema

NameRequiredDescriptionDefault
deviceIdNoTarget device serial

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructive=true and idempotent=true, so the description's added value is limited to naming the target resource (logcat buffer on a device). It does not mention data-loss implications, device connection prerequisites, or behavior when no device is specified.

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?

Single sentence, front-loaded, no redundant wording. It is appropriately sized for a simple command.

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

Completeness4/5

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

For a simple single-parameter destructive tool with annotations covering safety, the description gives the core action and target. It lacks usage guidance and default-device detail, but no output schema or nested parameters require more.

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?

Only parameter deviceId is fully described in schema; description adds no default-device or selection behavior. With 100% schema coverage, the schema carries parameter meaning; baseline 3 is appropriate.

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?

States a specific verb and resource: clearing the logcat buffer on a connected Android device. It is distinguishable from logcat_read by the verb, but it does not explicitly name or contrast the sibling.

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?

No when-to-use guidance, no mention of starting a fresh log session before logcat_read, and no exclusions. Only the basic action is stated, leaving the agent to infer context.

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