Skip to main content
Glama

delete_file

Delete files or directories on an Android device via ADB, optionally recursively or as root, while blocking dangerous paths like /system.

Instructions

Delete a device file or (recursive=True) directory. DESTRUCTIVE. Refuses obviously dangerous roots like '/', '/system', '/data'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
remoteYes
serialNo
as_rootNo
recursiveNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does disclose two important traits: the operation is DESTRUCTIVE and it refuses obviously dangerous roots like '/', '/system', '/data'. It stops short of covering irreversibility or the root/permission requirements of the as_root path.

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?

Two sentences, front-loaded with the core operation, with the destructive warning and guardrail surfaced immediately. No filler.

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?

An output schema exists, so return values need no explanation. For a destructive, unannotated file operation, the description covers the key safety signal and refusal behavior but omits permission/root semantics and irreversibility, leaving gaps an agent would want filled.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 4 parameters, so the description must compensate. It only clarifies recursive=True; the meaning of remote, serial, and especially as_root (root escalation requirements) is left undocumented in both schema and 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?

States a specific verb and resource ('Delete a device file or ... directory') and scopes it to device files, distinguishing it from the many app-management and I/O siblings (write_file, pull, push, make_dir). An agent can identify the operation immediately.

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?

Usage is implied by the description and the recursive flag is explained, but no alternatives are named (e.g., uninstall or clear_app_data for app data) and no prerequisites are stated for the as_root path. It does hint at a guardrail for dangerous roots, which is closer to behavior than usage guidance.

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