Skip to main content
Glama

logs

Read recent device or app diagnostic output and filter it with a case-insensitive regex to isolate exceptions and errors.

Instructions

Read recent log lines of the device, or of one app. Use filter to keep only matching lines, for example "exception|error".

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": {
      "device": "<device>"
    },
    "name": "logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNoApp id: Android package, Apple bundle identifier; on "mac" the bundle identifier or app name (required there)
linesNoKeep at most this many lines (the newest). Default 200
deviceYesDevice id (or exact name) from the devices tool
filterNoCase-insensitive regular expression; only matching lines are returned
secondsNoHow far back to read. Default 60

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; 'Read' implies a non-mutating operation, and 'recent'/'newest' hints at recency semantics. It does not disclose what the return looks like (plain text lines vs structured entries), truncation behavior on large logs, ordering, or failure modes when no log stream exists.

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?

Two short sentences with zero filler, purpose front-loaded and the filter affordance immediately following. Nothing needs trimming or reordering.

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

Completeness4/5

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

For a five-parameter, read-only diagnostic tool with fully documented params, the definition covers purpose and filtering adequately. The main residual gap is return-value shape and volume/truncation behavior, which matter for a log tool with no output schema.

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 100%, so all five parameters already carry their own documentation, which sets the baseline at 3. The description adds a useful concrete regex example for filter but restates nothing new about device, app, lines, or seconds beyond what the schema says.

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?

States a specific verb and resource ('Read recent log lines') plus its two scopes (whole device vs a single app), which cleanly separates it from siblings like ui_elements or screenshot. An agent can tell what it returns without opening the schema.

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

Usage Guidelines3/5

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

The description gives concrete guidance on parameter usage ('Use filter to keep only matching lines, for example "exception|error"'), which implies a debugging/log-triage use case, but it never states when to choose logs over alternatives (e.g., ui_elements for view hierarchy) or any prerequisites such as the app needing to be running.

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