Skip to main content
Glama

phone_flow_run

Destructive

Run an installed flow or draft JSON file once on an iPhone, pass its declared inputs, confirm side-effect steps, and optionally verify declared outputs.

Instructions

Run one flow exactly once: an installed registry id or a flow file (*.json, e.g. a draft being proved). Pass its declared inputs; risk=side_effect needs confirm=true; compat broken/incompatible for the installed app version needs force=true. Declared outputs come back top-level (verify=true checks them). One lock, whole-sequence validation, stops at the first failed step; a read_only flow missing an element retries its other-language variant. retry_safe=false: DO NOT replay, repair the flow.

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": {
      "id": "<id>"
    },
    "name": "phone_flow_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRegistry id such as `health/export-all` (see phone_flow_list), or the path of a flow file (`*.json`) — e.g. a draft saved by phone_flow_draft, to prove it on the phone before publishing.
forceNoRun even when compat is `broken` or `incompatible` for this phone.
inputsNoRuntime string inputs declared by the flow. Values are used for this run only and never persisted. Never pass passwords, codes, or private message content.
verifyNoCompare what the flow read (its `outputs`) against the recorded result shape; `verify.ok=false` names what drifted.
confirmNoRequired for flows declared `risk: side_effect`. Set true only after the user confirmed the target and inputs.
instanceNodaemon instance name
write_fixtureNoWith verify: record this run's output shape as the fixture (types only). Only after checking the values are right.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.29.2
    • removedInput schema / description
      Removed value: -"Parameters for [`phone_flow_run`]."
  2. Changed2 schema fields changedv0.29.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / instance / description
      Previous value: -"Installed local instance name, such as i13 or default. Omit to use the configured daemon. No fallback on failure."New value: +"daemon instance name"
  3. Changed1 schema field changedv0.27.3
    • addedInput schema / properties / instance
      Added value: +{
      +  "description": "Installed local instance name, such as i13 or default. Omit to use the configured daemon. No fallback on failure.",
      +  "type": "string"
      +}
  4. First observedv0.21.0

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint, openWorldHint, non-idempotent) it discloses execution semantics an agent could not otherwise know: one lock, whole-sequence validation, halt at the first failed step, outputs returned top-level, and a language-variant retry for read_only flows missing an element. The retry_safe=false warning tells the agent the failure is not replayable, which directly shapes recovery behavior.

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-loaded with the core action, then prerequisites, then runtime semantics, with no filler sentences. The telegraphic fragments ("One lock, whole-sequence validation") and the bare token "retry_safe=false" are terse to the point of requiring interpretation, which costs a point.

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 destructive, non-idempotent execution tool with no output schema, it covers the gating flags, where results appear (top-level outputs), and what verify.ok reports. It does not describe the failure return shape or how to retrieve a run afterwards, leaving the agent to guess at post-failure inspection.

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 the baseline is 3. The description does add cross-parameter meaning the schema lacks: confirm is gated on the flow's declared risk level, force is gated on compat state, and write_fixture only makes sense together with verify. It adds value but mostly restates the parameter intent already documented per-field.

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?

"Run one flow exactly once" gives a specific verb plus resource and an explicit execution granularity (single flow, whole sequence), which implicitly separates it from the step-oriented siblings (phone_run_start, phone_run_steps) and from phone_flow_draft/publish. It does not name an alternative sibling explicitly, so an agent must infer the boundary rather than read it.

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?

Conditional guidance is strong: confirm=true only for risk=side_effect flows, force=true only when compat is broken/incompatible, verify=true to check declared outputs, write_fixture only after checking values. The negative guidance "DO NOT replay, repair the flow" is unusually explicit. The gap is that it never states when to prefer this over the stepwise run tools.

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