Skip to main content
Glama

file_push

Copies a local host file to an Android device at a specified destination path, with optional octal permissions for assets, APKs, or configs.

Instructions

Copy a local file to the device (e.g. an APK, config, or test asset).

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>",
      "remote_path": "<remote_path>"
    },
    "name": "file_push"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoOctal permission bits, default 644
local_pathYesPath on the host
remote_pathYesDestination path on the device, e.g. /sdcard/x.txt

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it discloses nothing about overwrite behavior at the destination, permission/auth requirements, size limits, or whether the parent directory must exist. Only the mutation is implied by 'Copy'.

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 compact sentence with the verb and direction front-loaded and a useful parenthetical of example payloads. No filler, though it is thin enough that brevity comes at the cost of behavioral detail.

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 three-parameter write tool with no annotations and no output schema, the description covers what it does but not what happens on failure or overwrite. Adequate minimum viability but leaves real 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.

Parameters3/5

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

Schema coverage is 100%, so each of the three parameters is already documented in the schema, including the octal mode default. The description adds no information about path formats, host path resolution, or mode application beyond what the schema states, so baseline 3 applies.

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?

States a specific verb ('Copy') and resource ('a local file to the device'), with examples of payload types (APK, config, test asset). It is distinguishable from file_pull by the direction of transfer, though the description never explicitly contrasts the two.

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 direction of copying and the example file kinds, so an agent can infer host-to-device transfers. There is no explicit when-to-use vs file_pull/file_read guidance, no note on prerequisites such as an established device connection, and no stated alternatives.

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