Skip to main content
Glama

Logs and crashes

read_logs
Read-only

Retrieve an app's log lines (Android logcat) or crash, ANR and exit reports to diagnose failures after an action. Filter by level, text, and time, with secrets redacted.

Instructions

Read the app's log, or with source crashes its crash, ANR and exit reports. Returns, for the log, its own lines (logcat on Android), newest last, secrets redacted; level, contains, limit (200). For crashes: a bounded summary and each report's file; limit (5), symbols. An action the app died under already says why: this is for more. Requests: capture_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": "read_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNo
levelNoinfo
limitNo
sinceNoISO time; default: since the last action
sourceNoapp
symbolsNoa .dSYM or folder of them; Android: a folder of .so
containsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.4

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint, so the description adds real value: logcat line ordering (newest last), secrets redaction, per-source caps (200 for log, 5 for crashes), and that crash mode returns a bounded summary plus each report's file. It does not explain what "bounded" means in practice or what happens when the limit is exceeded. Note the per-source limit values differ from the schema, which declares limit with no default.

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?

The purpose is front-loaded and no sentence is filler, but the prose is over-compressed to the point of ambiguity — fragments like "Requests: capture_network" and "limit (200)" require the reader to reconstruct the grammar. Some of that density costs more in re-reading than it saves in length.

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

Completeness3/5

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

This is a two-mode tool with seven parameters, no output schema, and low schema coverage, so it needs to do heavy lifting; it covers the return shapes of both modes but leaves app and since unaddressed and does not clarify the interaction between since and the log's date scoping. Adequate to attempt a call, not complete enough to call confidently.

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?

With only 29% schema description coverage, the description has to carry the load and largely does: it explains source's two modes and their differing return shapes, level, contains, and the per-mode limit values. gaps remain for app (never mentioned) and since (whose default is only documented in the schema), and symbols is named but not explained beyond the schema's .dSYM/.so note.

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 opening sentence names a specific verb and resource ("Read the app's log") and explicitly branches into a second resource via the source parameter (crash, ANR and exit reports). An agent can distinguish the two modes and the sibling it is not (capture_network) without opening the schema. The phrasing is telegraphic ("or with source crashes its crash, ANR...") but the intent survives.

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 both a when-not ("An action the app died under already says why: this is for more") and an alternative for a neighboring concern ("Requests: capture_network"). These are compressed but actionable routing rules. What is missing is any statement of prerequisites or cost (e.g., whether reading crashes requires symbols to be useful at all).

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