Skip to main content
Glama
Mobile Device Farm MCP

Mobile Device Farm MCP

adb_logcat

Retrieve recent Android device logs (last N lines) with an optional grep filter for targeted debugging and log analysis on a specified device.

Instructions

Get recent logs from an Android device (last N lines).

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

Input Schema

NameRequiredDescriptionDefault
linesNo
filterNoOptional grep filter
deviceIdNoTarget device serial

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/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. It implies a read operation and a tail-style retrieval of the last N lines, but never states that it is read-only, whether it blocks/streams, how it behaves when multiple devices are attached, or whether log buffers are cleared or preserved.

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?

One short, front-loaded sentence with no filler, and the scope constraint is placed immediately after the verb. It is efficient, though its brevity reflects under-specification rather than tight editing.

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

Completeness2/5

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

With no annotations and no output schema, an agent needs the description to explain output shape, blocking behavior, and multi-device handling, none of which appear. For a diagnostic tool with three optional parameters, this leaves meaningful 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 coverage is 67%, with filter and deviceId documented in the schema, so the baseline is a 3. The description adds only that "lines" means the trailing N lines, which is modest but real meaning beyond the raw schema.

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 states a specific verb and resource ("Get recent logs") plus the target platform and scope ("last N lines"), which separates it from siblings like analyze_logs or adb_shell. It does not explicitly name a sibling it is not, so it falls short of a 5.

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?

There is no guidance on when to use this versus analyze_logs or adb_shell, and no mention of prerequisites such as device connectivity or the fact that only one device is targeted. Usage is only implied by the word "logs".

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