Skip to main content
Glama

Mobilebox: Cloud phones for your agents

Push file

push_file

Put a file on the phone, e.g. a game file, mod, save or document an app imports through Android's file picker: from a public download URL (up to 2 GB) or inline content. A file name lands in /sdcard/Download, which the picker shows under Downloads; a file already at that path is replaced. Returns the path and size. Files from your own disk: POST /v1/phones/{id}/files over REST.

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": {
      "phone_id": "<phone_id>",
      "path": "<path>"
    },
    "name": "push_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoDirect https link to the file; or give content instead
pathYesA file name like "game.apk" (goes to /sdcard/Download) or a path under /sdcard/
contentNoThe file itself, up to 180,000 characters: text, or base64 with encoding "base64"
encodingNoHow content is written: utf8 (default), or base64 for a binary file
phone_idYesPhone id, ph_…

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations confirm this is a write operation, and the description adds real behavior beyond them: where a bare file name lands (/sdcard/Download), that an existing file at that path is overwritten, the 2 GB ceiling for URL pushes, and that the call returns path and size. The overwrite disclosure is valuable and arguably worth flagging against destructiveHint=false, though it is narrow enough that it does not read as a contradiction.

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?

Three sentences, front-loaded with purpose and destination before edge cases, and no filler. The example list ('game file, mod, save or document') and the trailing REST pointer are slightly padding but each carries some routing value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a write tool with a fully described five-parameter schema, no output schema, and annotations covering the safety profile, the description covers destination, overwrite semantics, size limits, and return value. Nothing essential to calling it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not carry: the 2 GB file-size limit for a URL source (the schema's 2048 maxLength refers to URL string length, not file size) and confirmation of how a bare filename resolves to a path. It does not explain the url-vs-content mutual exclusion or base64 sizing beyond what the schema already states.

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 opens with a specific verb and resource ('Put a file on the phone') and immediately names the concrete goal it serves: handing a file to an app through Android's file picker. The push direction and the example file types make it distinguishable from pull_file 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?

It gives clear usage context (files an app imports through the picker) and routes one case elsewhere: files already on the caller's disk go via the REST endpoint. It stops short of explicitly excluding sibling paths, notably install_app for .apk files, which is a plausible source of confusion given the 'game.apk' example.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.