Skip to main content
Glama

list_adb_directory

Idempotent

Lists a single absolute Android device directory via ADB with names, permissions, sizes, dates, and symlink targets; read-only, and reports missing or denied paths.

Instructions

List one absolute device directory (ls -la): names, kinds, permissions, owner, group, sizes, dates, and symlink targets. Recognizes the standard errors for absent paths and denied reads. Read-only.

Input Schema

NameRequiredDescriptionDefault
serialYesDevice serial exactly as `adb devices` reports it
device_pathYesAbsolute device directory path to list (ls -la)
analysis_project_idNoOptional investigation to retain this tool result in. Does not prove target identity or causal relationships.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.1/5.0
Behavior1/5

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

The description explicitly states 'Read-only', but annotations set readOnlyHint=false. This is a direct contradiction and is flagged. While the error handling note adds some context, the contradiction on the core safety profile is severe.

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, front-loaded sentence with zero waste. It states the action, the output fields, and error behavior without burying the lede.

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?

No output schema exists, but the description lists the returned fields and notes standard error recognition, which covers the essentials. However, the contradictory read-only claim undermines completeness for a tool whose annotations say otherwise.

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 all three parameters are already documented in the schema. The description reinforces that device_path must be absolute and that serial is required, but adds no new semantic detail beyond 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?

States a specific verb and resource ('List one absolute device directory') and enumerates the exact fields returned (names, kinds, permissions, owner, group, sizes, dates, symlink targets). This is distinguishable from sibling tools like list_adb_devices or inspect_adb_device, which operate on devices rather than a directory.

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?

The description does not say when to use this tool versus alternatives such as inspect_adb_device or read_adb_logcat, nor does it give prerequisites beyond the implicit 'absolute device directory'. It provides no exclusions or routing guidance.

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

Deploy Server

Other Tools