Skip to main content
Glama

List installed packages

list_packages
Read-onlyIdempotent

Query installed Android package names on a device via adbmcp, with optional substring filtering to locate specific apps for targeted actions.

Instructions

List package names installed on one device (optionally filtered by a substring of the package name), e.g. filter "com.example" to find only the app you care about.

Input Schema

NameRequiredDescriptionDefault
deviceNoDevice serial from list_devices; optional when exactly one device is connected.
filterNoSubstring filter passed to `pm list packages`, e.g. "example" or "com.android.chrome".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds the output type (package names) and filter behavior, but does not mention permissions, performance, or other runtime traits beyond what the annotations provide.

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 a concrete example, no filler. Every clause contributes to understanding what the tool returns and how filtering works.

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 simple two-parameter list tool with no output schema, the description states the return content (package names) and filter behavior. It leaves device optionality to the schema, which already documents it, so it is largely complete for the tool's complexity.

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 both the device and filter parameters are already documented in the schema. The description repeats the filter concept and gives an example, but adds no meaning beyond the schema's own examples and descriptions.

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 package names installed on one device. It also clarifies the optional substring filtering and gives an example, making it easily distinguishable from mutation siblings like install_apk or uninstall_package.

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?

Implies when to use it by mentioning filtering to find an app of interest, but does not explicitly compare against alternatives such as list_devices, get_device_info, or dumpsys_query. No when-not guidance is provided.

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