Skip to main content
Glama
Mobile Device Farm MCP

Mobile Device Farm MCP

analyze_logs

Retrieves and filters device logs by mode (crash, ANR, or network) to help diagnose app failures and reproduce bugs quickly during mobile testing.

Instructions

Get logs filtered by mode (crash, anr, network).

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

Input Schema

NameRequiredDescriptionDefault
modeNoall
linesNo
deviceIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/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 and discloses almost nothing: it doesn't say whether logs come from the connected device or a specific app, what permissions are needed, whether lines caps output volume, or what the response looks like. The default of 500 lines — an important cost/latency signal — is never mentioned.

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 short sentence, front-loaded with the verb and resource, with zero filler. Brevity is achieved, though partly by omitting information rather than by efficient phrasing.

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?

For a three-parameter tool with no annotations, no output schema, and zero schema description coverage, the definition is far too thin: filtering semantics, line limits, device targeting, and return shape are all left unstated. Nothing outside the structured fields is covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/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 and instead adds almost nothing: it lists three of the four mode values (omitting the 'all' default) and never mentions lines or deviceId. An agent must open the schema to learn that two-thirds of the parameters exist at all.

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 (Get) and resource (logs) plus the filtering dimension (mode: crash, anr, network). An agent knows what it returns, but nothing distinguishes it from the sibling adb_logcat, which likely overlaps heavily.

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 when-to-use guidance: no statement of when to prefer this over adb_logcat, no prerequisite that a device be connected or a deviceId supplied, and no exclusions. The parenthetical mode list is a filter enumeration, not usage guidance.

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