Skip to main content
Glama

Mobilebox: Cloud phones for your agents

Embed phone

embed_phone

Get an iframe URL that shows this running Android phone live inside your own web app, for its end users (an app preview): signed, short-lived, framed only by the origin you name, which must be on the workspace's allowed list (PUT /v1/embed/origins). View-only by default; interactive lets the end user tap, swipe and type on the phone (and nothing else: no other phone, no account). Billed as normal phone minutes. DELETE /v1/phones/{id}/embed ends every link of the phone.

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>",
      "origin": "<origin>"
    },
    "name": "embed_phone"
  }
}

Input Schema

NameRequiredDescriptionDefault
originYesThe origin of the page that holds the iframe, e.g. "https://app.example.com"
phone_idYesPhone id, ph_…
interactiveNotrue: taps, swipes and typing reach the phone; default false (view-only)
ttl_secondsNoHow long the link opens, 60 to 3600; default 900

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past the annotations: the link is signed and short-lived, is frameable only by the named origin, is view-only by default with interactive scope bounded ('no other phone, no account'), consumes normal phone minutes, and is revocable via DELETE /v1/phones/{id}/embed. This is exactly the extra context a link-minting, billable tool needs.

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?

Front-loads what you get, then prerequisite, then mode, then billing — a sensible order with no filler sentences. It runs long in a single unbroken block, and the trailing DELETE endpoint note could be tighter.

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?

Covers the security model, scoping, cost, and revocation, which is most of what an agent needs before minting a public link. It does not say what the response actually contains (URL field, expiry), which matters somewhat given there is no output schema, though 'signed, short-lived' partly implies it.

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 already 100%, so the baseline is 3, but the prose adds real meaning: origin is not arbitrary (must be allow-listed), interactive is scoped to this one phone and no account access, and the URL is short-lived rather than durable. It stops short of restating the ttl bounds or default, which the schema already covers.

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 concrete verb and resource — an iframe URL that renders the running Android phone live — plus the audience ('its end users') and the scenario ('an app preview'). That audience framing is what separates it from sibling streaming tools like watch_phone or observe, which are for the operator rather than external users.

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?

Gives a clear condition of use (embedding into a customer-facing web app) and a hard prerequisite: the framing origin must already be on the workspace's allowed list, with the exact admin call (PUT /v1/embed/origins) named. It does not name an alternative for internal/operator viewing, so the exclusion is implied rather than explicit.

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.