Skip to main content
Glama

Push file

push_file
Destructive

Copies a local file to an Android device over adb so you can seed test data or import files to a specified device path.

Instructions

Copy a local file onto the device (adb push) — e.g. seed test data or a file to import.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "local_path": "<local_path>",
      "device_path": "<device_path>"
    },
    "name": "push_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
serialNoTarget device serial (adb -s). Optional when exactly one device is attached.
local_pathYesLocal file to copy onto the device.
device_pathYesDestination path on the device, e.g. /sdcard/Download/x.json.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=false, so the description only needs to explain why a 'copy' is destructive — namely that an existing file at device_path is overwritten — and it does not. The adb push equivalence and use-case examples add some context beyond annotations, but the most important behavioral fact is left implicit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with the action first, then the mechanism, then examples; nothing is redundant. The parenthetical and trailing example are compact and earn their space.

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?

For a simple three-parameter tool with full schema coverage this is close to sufficient, but a destructive write tool should state overwrite semantics and any precondition (writable destination, connected device). Those gaps leave the agent relying on annotations to infer risk.

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%, including the serial-to-device matching rule and an example destination path, so the schema carries the parameter burden. The description adds only a loose framing of the two required paths and no new semantics such as whether parent directories are created.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ('Copy a local file onto the device') and anchors it to the underlying mechanism (adb push) with concrete example uses. It does not name the obvious sibling pull_file, so the direction of the transfer must be inferred from the name alone.

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?

The examples ('seed test data or a file to import') imply when to reach for this tool, but there is no explicit when-not guidance and no mention of pull_file as the inverse operation. An agent has enough to guess the use case but no routing rule.

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