Skip to main content
Glama
invidtiv
by invidtiv

Execute shell command on device

android.shell.exec

Execute shell commands on Android devices via ADB to automate tasks, manage files, or control system functions. Use caution as commands can perform any device operation.

Instructions

WARNING: Executes arbitrary shell command via adb shell. Can perform any operation on the device. Use with extreme caution. Returns stdout, stderr, and exit code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serialYes
commandYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and effectively discloses key behavioral traits: it warns of high risk ('extreme caution'), describes the action's scope ('can perform any operation on the device'), and specifies the return values ('stdout, stderr, and exit code'). It lacks details on permissions or rate limits, but covers essential safety and output information.

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?

The description is front-loaded with a warning, followed by clear statements on capability and returns, all in three concise sentences with zero wasted words. Each sentence adds critical information (risk, scope, output), making it efficiently structured and appropriately sized for the tool's complexity.

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?

Given the tool's high complexity (arbitrary execution), no annotations, and no output schema, the description is largely complete: it covers purpose, risk, and return values. However, it lacks details on error handling or specific prerequisites (e.g., device connectivity), leaving minor gaps in context for safe usage.

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 0%, so the description must compensate, but it does not explain the parameters 'serial' or 'command' beyond what the schema's property names imply. The description adds no meaning to the parameters, such as clarifying 'serial' refers to device identifier or 'command' format, leaving them undocumented. Baseline 3 is given as it partially compensates by implying command execution context.

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 explicitly states the verb 'executes' and the resource 'shell command on device', clearly distinguishing it from sibling tools like android.file.pull or android.input.tap by focusing on arbitrary command execution via adb shell. It specifies the action and target without redundancy.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance with 'Use with extreme caution', indicating high-risk scenarios, and implicitly suggests alternatives by noting it 'can perform any operation', implying more specific tools (e.g., android.file.push for file operations) should be preferred when available. It clearly defines when to use (arbitrary commands) and warns against misuse.

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

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/invidtiv/mcp-scrcpy-vision'

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