Skip to main content
Glama

Start log capture

start_log_capture

Begins capturing Android logcat to a file in the background, filtering by app or tag, and returns a session ID for later stopping.

Instructions

Start capturing logcat to a file in the background. Filter by app (via its pid) and/or tag. Returns a sessionId for stop_log_capture. The app must be running to filter by appId.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagNoOnly capture this log tag (logcat '<tag>:V *:S')
appIdNoOnly capture logs of this app (defaults to session appId; must be running)
clearNoClear the log buffer first (default true)
serialNoDevice serial (defaults to session or the only device)
Behavior3/5

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

With no annotations, the description carries the transparency burden. It discloses background behavior, the returned sessionId, and the app-running prerequisite. However, it does not describe the file handling, how to retrieve the captured logs, or implications of the clear parameter (though schema covers that). More behavioral context, such as what happens when stop is not called, would improve transparency.

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?

Three concise sentences convey purpose, return value, and a prerequisite without redundancy. Every sentence earns its place; no filler or unnecessary elaboration.

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 tool with no output schema and no annotations, the description covers core purpose, mechanics, and a key prerequisite. It does not explain how to obtain the captured file or when to prefer this over get_logs, but given the strong schema parameter descriptions, the tool is mostly self-explanatory. A brief mention of the sessionId's role could enhance orientation, but the current level is adequate.

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 covers 100% of parameters, so baseline is 3. The description adds a small clarification ('via its pid') and the 'and/or' relationship between appId and tag, but otherwise the parameter details are already well documented in the schema.

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 clearly states the tool starts capturing logcat to a file in the background, distinguishing it from siblings like stop_log_capture and get_logs. It specifies a concrete verb ('start capturing') and the resource (logcat to a file).

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 provides usage context by mentioning the returned sessionId for stop_log_capture and the prerequisite that the app must be running for appId filtering. It lacks an explicit comparison with get_logs or get_crash_logs, but the background-capture purpose guides selection appropriately.

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