Skip to main content
Glama
mobile-next

Mobile Next MCP Server

Official
by mobile-next

Get Device Logs

mobile_get_device_logs
Read-only

Collect live Android logcat or iOS unified logs as JSON objects to troubleshoot device issues. Supports filtering and saving logs to a file for analysis.

Instructions

Collect live device logs (logcat on Android, unified log on iOS) as one JSON object per line. Only logs emitted after the call starts are captured, so trigger the behavior you want to observe right before or during the call. Stops after limit entries or after 30 seconds of silence. Each line of a stack trace counts as one entry, so filter by process or tag to avoid filling the limit with noise. Start with a small limit (20-50) for a quick look. For large captures, pass saveTo to write logs to a file and only the entry count is returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoStop after this many log entries
deviceYesThe device identifier to use. Use mobile_list_available_devices to find which devices are available to you.
filterNoFilters, ANDed together. key=value includes, key!=value excludes. Keys: pid, process, tag, level, subsystem, category, message. Example: ["tag=ActivityManager", "level=Error", "process!=SpringBoard"]
saveToNoPath to write the logs to instead of returning them. Filename must end with .log, .txt, or .jsonl

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.3

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only provide readOnlyHint and openWorldHint. The description discloses critical runtime behaviors: capture starts only after the call begins, stops after limit entries or 30s of silence, stack trace lines count as entries, and saveTo changes the return to just a count. These go well beyond the annotations.

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?

A compact paragraph with every sentence serving a purpose: what it does, when to trigger, stop conditions, counting caveat, and practical usage tips. No fluff, front-loaded with the core function.

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

Completeness5/5

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

For a tool with no output schema, it explains the output format (JSON per line), the return behavior with saveTo, and the key constraints (timing, limits, counting). An agent has all needed information to call it correctly and interpret results.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema covers all parameters with 100% coverage, so baseline is 3. The description adds value by recommending a starting range for limit (20-50) and clarifying that saveTo returns only the entry count, which is not stated in the schema. This is useful but not transformative.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a precise verb+resource ('Collect live device logs') and immediately clarifies platform specifics (logcat vs unified log) and output format (JSON per line). It is distinct from the only related siblings (crash-focused tools) without needing to name them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly tells the agent when to trigger behavior (right before or during the call), how to start (small limit 20-50), how to avoid noise (filter by process/tag), and when to use saveTo for large captures. This is actionable guidance for correct invocation.

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