Skip to main content
Glama

Read Logcat

logcat_read
Read-onlyIdempotent

Read Android logcat output and filter by tag, priority, search string, or time to inspect recent device logs for debugging.

Instructions

Read Android logcat output with optional filtering by tag, priority level, or search string

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

Input Schema

NameRequiredDescriptionDefault
tagNoFilter by log tag, e.g. 'MyApp'
grepNoFilter output lines containing this string (case-insensitive)
linesNoMaximum number of recent log lines to return
sinceNoOnly show logs since this time, e.g. '2024-01-01 12:00:00.000'
deviceIdNoTarget device serial
priorityNoMinimum log priority level (V=Verbose, D=Debug, I=Info, W=Warn, E=Error, F=Fatal)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnly=true, idempotent=true, destructive=false and openWorld=false, so the safety profile is fully covered. The description adds nothing beyond them: it does not say whether this is a one-shot snapshot versus a streaming tail, that output is bounded to recent lines (the truncation risk lives only in the schema), or whether the call blocks while waiting for new logs.

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 front-loaded sentence with no wasted clauses. 'Optional' is mildly redundant since no parameters are required, but the sentence is otherwise tight and non-repetitive.

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?

For a six-parameter read tool with no output schema, the description is adequate but thin: it omits the snapshot nature of the read, the default 100-line cap and its truncation implications, and any guidance on device targeting. An agent could call it correctly, but only by reading the schema closely.

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 every parameter including the V/D/I/W/E/F priority enum and the since timestamp format is already documented. The description only restates that tag, priority and search string are filters, adding no semantics beyond the schema; baseline 3 applies.

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?

Specific verb plus resource: 'Read Android logcat output', with the filter dimensions named. An agent can distinguish this from logcat_clear without opening the schema, though the description never explicitly contrasts the two.

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?

No when-to-use or when-not-to-use guidance, no mention of prerequisites (e.g. needing an active device or which deviceId applies when several are connected), and no routing to a sibling such as logcat_clear. Only the implication of 'optional filtering' hints that a bare call returns everything recent.

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