Skip to main content
Glama

phone_flow_draft

Convert the daemon's recorded phone actions in the current app into a flow draft with locators, named inputs (no typed text), and a todo list; ask the user before saving.

Instructions

Turn what you just did on the phone into a flow: the daemon's trail of applied actions in the current app (not flow runs) as a flow v1 document — snapshot taps become label/identifier locators, typed text becomes named inputs and is never included — plus a todo list. Call it on flow_suggestion or after a multi-step task with no flow, but ASK THE USER before saving. save_as writes and validates the file; fix the todos, prove it with phone_flow_run, publish only with the user's OK.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "phone_flow_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
save_asNoOptional path to write the draft flow to (a new `.json` file; existing files are never overwritten). It is validated after writing.
instanceNodaemon instance name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.29.2
    • removedInput schema / description
      Removed value: -"Parameters for [`phone_flow_draft`]."
  2. Changed4 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"
    • removedInput schema / properties / save_as / default
      Removed value: -null
    • changedInput schema / properties / save_as / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
  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.6/5.0
Behavior5/5

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

Annotations say readOnlyHint=false and destructiveHint=false, but the description adds the details that matter: only save_as writes, the write is validated, existing files are never overwritten, and typed text is never included in the output (a privacy-relevant guarantee). It also discloses that the draft carries a todo list and must be proven with phone_flow_run before publishing. That is substantive behavior well beyond the annotation profile.

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?

Purpose is front-loaded in the first clause, followed by output shape, then the usage/safety protocol. Nothing is wasted, but the long em-dash-laden first sentence packs several distinct facts together and is denser than it needs to be for quick scanning.

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 two-parameter tool with no output schema, the description covers the important unknowns: what document is produced, how actions are encoded, what is deliberately excluded, that a todo list accompanies it, and the full save/verify/publish protocol. There is no output schema, yet the return shape is adequately described.

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% and both parameters are already documented in the schema, including the no-overwrite and post-write validation behavior. The description restates save_as writing and validating rather than adding new meaning, and says nothing extra about instance. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

Opens with a concrete verb and resource: turn the daemon's trail of applied actions in the current app into a flow v1 document. It also explicitly excludes flow runs and names the concrete transformations (snapshot taps become locators, typed text becomes named inputs, plus a todo list), so an agent can distinguish it from phone_flow_run or phone_flow_list without opening a schema.

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?

Gives explicit triggers (on a flow_suggestion, or after a multi-step task with no flow) and explicit sequencing: ask the user before saving, fix todos, prove with phone_flow_run, publish only with user OK. It names the sibling tools that carry the follow-on steps, so the when-to-use and when-not-to-publish boundaries are unambiguous.

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