Skip to main content
Glama

Phone Control Tool

phone-control-tool

Send a raw input primitive to a farm phone. The slot must be cast/live. Unlike phone_command (which queues an on-phone Shortcut), these are direct farmd socket ops and run synchronously — the call returns once farmd acks. Coordinates are fractions of the screen (0..1: 0 = left/top, 1 = right/bottom). Ops:

  • tap (fx, fy): tap a point

  • swipe (fx1, fy1, fx2, fy2, optional steps): drag/flick between two points

  • hotkey (key): press a key: home, app_switcher, control_center, notifications, back, run_shortcut, enter, backspace, copy, cut, paste, select_all

  • type (text): type ASCII text into the focused field

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fxNoTap x, fraction 0..1 (for tap). Optional.
fyNoTap y, fraction 0..1 (for tap). Optional.
opYesInput op: tap, swipe, hotkey, type.
fx1NoSwipe start x, fraction 0..1 (for swipe). Optional.
fx2NoSwipe end x, fraction 0..1 (for swipe). Optional.
fy1NoSwipe start y, fraction 0..1 (for swipe). Optional.
fy2NoSwipe end y, fraction 0..1 (for swipe). Optional.
keyNoKey name (for hotkey): home, app_switcher, control_center, notifications, back, run_shortcut, enter, backspace, copy, cut, paste, select_all. Optional.
slotYesPhone slot to control, given as the `slot` UUID from list-phones (its display name like "slot12" is not accepted). Must be cast/live.
textNoText to type into the focused field (for type). Optional.
stepsNoSwipe step count controlling gesture speed (for swipe). Defaults to 20. Optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/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 transparency burden. It discloses that execution is synchronous ('the call returns once farmd acks'), defines the coordinate system (fractions 0..1), and enumerates the available ops with their effects. It stops short of describing error handling or rate limits, but the core behavior is well covered.

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?

The description is compact and front-loaded with the core purpose, followed by the critical distinction from phone_command and coordinate rules. The ops are presented as a readable bullet list. Every sentence contributes; there is no filler.

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?

For a tool with 11 parameters, no output schema, and no annotations, the description covers the essential operational knowledge: the required slot state, the op types, coordinate semantics, and synchronous execution. It does not specify the return value format or error scenarios, but for a raw-input tool these are secondary and partly implied by the ack statement.

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 real semantic value beyond the parameter descriptions: it explains that coordinates are fractions of screen dimensions (0 = left/top, 1 = right/bottom), clarifies each op's parameter mapping (e.g., swipe start/end points, steps controlling gesture speed), and gives the default for steps. This helps the agent construct correct parameter combinations.

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 states a specific verb and resource ('Send a raw input primitive to a farm phone') and explicitly distinguishes itself from sibling phone_command by contrasting queue-based shortcuts with direct farmd socket ops. An agent can immediately understand what this tool does and how it differs from its closest alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says 'Unlike phone_command (which queues an on-phone Shortcut), these are direct farmd socket ops and run synchronously', giving a clear when-to-use-this-vs-that. It also states a precondition ('The slot must be cast/live') that an agent must check before calling.

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.

Resources