Skip to main content
Glama

Get recent logs

get_logs
Read-only

Retrieve recent Android logcat output filtered by app ID and tag to debug app issues.

Instructions

One-shot dump of recent logcat lines, optionally filtered by app (must be running) and/or tag.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagNoFilter to this log tag
appIdNoFilter to this app (defaults to session appId if running)
linesNoMax lines (default 200)
serialNoDevice serial (defaults to session or the only device)
Behavior4/5

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

Annotations already mark readOnlyHint=true; description adds that this is a one-shot (not continuous) operation and that app filtering requires the app to be running. This is useful context beyond the safety hint, though it doesn't detail output limits.

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 single sentence that is front-loaded with the action and resource, with no wasted words.

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 read-only log dump with four optional, well-documented parameters and no output schema, the description conveys the essential behavior and constraints. It doesn't mention return format or default line count, but the schema covers defaults.

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?

Input schema has 100% coverage for all four parameters, so the description doesn't need to explain each. It adds only generic filtering context and the 'must be running' constraint, which is largely already in the appId schema description.

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?

Description uses specific verb 'dump' with resource 'recent logcat lines' and optional filters. It clearly distinguishes from sibling tools like start_log_capture (continuous capture) and get_crash_logs.

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?

States one-shot nature and filtering by app (must be running) and/or tag, giving clear context for use. It does not explicitly name alternatives or when-not-to-use, so not a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dev-jackson/androidbuild-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server