Skip to main content
Glama

Mobilebox: Cloud phones for your agents

App logs

app_logs
Read-only

Read an installed app's own log lines (Android logcat, only that app's processes, crash reports included), how its processes last ended (crash, crash_native, anr, low_memory, user_requested for a force stop, …) and its newest ANR trace (the main thread's stack). Use it when an app closed by itself, hangs (e.g. stuck on its splash screen) or shows an error, and after a server action the screen says worked (apps often update the screen before the server answers); .NET (MAUI) Console output is info level, tag DOTNET. Returns one line per log entry, "time pid level tag: message", newest last (the last 200 lines, up to 20 KB; by default warnings and errors, or info and up in the app's first 2 minutes or when it logged no warnings, as the first line says), then the last exits and the ANR trace if there is one.

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": {
      "phone_id": "<phone_id>",
      "package": "<package>"
    },
    "name": "app_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoLowest level shown: V verbose, D debug, I info, W warning (default; I in the app's first 2 minutes or when it logged no warnings), E error
linesNoHow many of the newest lines, 1 to 1000 (default 200)
sinceNoOnly entries from this time on, ISO 8601, e.g. the time of a line you already saw
packageYesPackage name, e.g. com.example.app (from list_apps)
phone_idYesPhone id, ph_…

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / level / description
      Previous value: -"Lowest level shown: V verbose, D debug, I info, W warning (default), E error"New value: +"Lowest level shown: V verbose, D debug, I info, W warning (default; I in the app's first 2 minutes or when it logged no warnings), E error"
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, yet the description discloses substantial behavior beyond that: output is one line per entry as "time pid level tag: message" newest last, capped at the last 200 lines / 20 KB, with a default filter of warnings+errors unless the app is in its first 2 minutes or logged no warnings. It also states that exit history and an ANR trace are appended after the log lines, and flags that .NET MAUI Console output arrives as info level with tag DOTNET.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded, but the whole definition is a single dense run-on sentence with nested parentheses and semicolons that make the default-filtering rule and the return layout hard to parse on first read. The content is useful, yet restructuring into separate sentences for purpose, triggers and return shape would cost nothing in length.

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?

There is no output schema, and the description fully compensates by describing the line format, ordering, size limits, default filtering rule and the appended exit/ANR sections. For a read-only five-parameter tool, an agent has everything needed to call it and interpret the result.

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 description coverage is 100%, so the schema already documents level, lines, since, package and phone_id, and the description largely restates the level defaults rather than adding new syntax or format detail. The only extra signal is the DOTNET tag convention, which is marginal at the parameter level.

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 names three concrete resources it reads: the app's own logcat lines (scoped to that app's processes, crashes included), how its processes last ended (crash/anr/low_memory/user_requested), and the newest ANR main-thread trace. That is specific enough to separate it from siblings like observe or screenshot without opening any schema.

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

Usage Guidelines4/5

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

It gives explicit trigger scenarios: the app closed by itself, hangs (e.g. stuck on splash), shows an error, or after a server action where the UI claims success before the server answered. What is missing is any exclusion or pointer to an alternative tool when these symptoms are absent, so it stops short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.