Skip to main content
Glama

Push a file to the device

push_file

Copy a file from the host machine to a connected Android device via adb push; remote destination must stay within configured allowed roots.

Instructions

Copy a file from the host machine to the device (adb push). For safety the remote path must be inside the configured allowed roots (default /sdcard, /storage/emulated/0, /data/local/tmp).

Input Schema

NameRequiredDescriptionDefault
deviceNoDevice serial from list_devices; optional when exactly one device is connected.
local_pathYesSource path on the host machine (relative paths resolve against the server cwd).
remote_pathYesDestination path on the device, e.g. "/sdcard/Download/app.apk".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-idempotent, open-world mutation. The description adds genuinely new behavioral context beyond that: the safety restriction that the remote path must fall inside configured allowed roots, with default roots listed. It does not describe failure behavior when a path is rejected, but the added constraint is substantive.

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, zero filler, with the core operation front-loaded and the safety constraint second. Every clause earns its place.

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?

With no output schema, the description plus annotations plus fully-described parameters cover what an agent needs to invoke the tool: operation, direction, and path safety. It omits what happens on a disallowed path or a failed copy, a minor gap for a straightforward file-transfer tool.

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 (device, local_path, remote_path) are already documented in the schema. The description reinforces the remote_path constraint with allowed-root detail, but this is supplemental rather than compensating for a gap. Baseline 3 is appropriate.

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 ('Copy a file from the host machine to the device') and names the underlying adb operation, which cleanly distinguishes it from the sibling pull_file. An agent can select it without opening either schema.

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?

The description gives a clear operating context (host-to-device copy) and a precondition on the remote path, which implies when the tool applies. It does not explicitly name pull_file as the reverse-direction alternative or state when-not-to-use, so it stops short of full routing guidance.

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