Skip to main content
Glama

iph_run

Run a saved script by name in one call and return its outputs, enabling scripted automation of a physical iPhone through the iphone-cli MCP server.

Instructions

Run a saved script by name (see iph_scripts) in one call and get its outputs. Same result as iph_script.

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

Input Schema

NameRequiredDescriptionDefault
argsNoWhat the script reads as `args`.
nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, yet it only says the tool executes a saved script and returns outputs. It omits whether script execution has side effects (likely, given sibling tap/swipe/type tools), whether it blocks until completion, what happens on a missing or failing script name, and any auth or permission requirements. "In one call" is the one useful behavioral hint.

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?

Two short sentences, front-loaded with the action and resource, with the discovery pointer inserted in-line. Nothing is wasted, though the trailing "Same result as iph_script" is slightly cryptic and could be phrased as a clearer differentiation.

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

Completeness3/5

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

With no annotations and no output schema, the description should do more to characterize execution behavior, failure modes, and whether results are synchronous. It covers what the tool does and where names come from, which is the minimum viable set for a two-parameter tool, but leaves the agent guessing about side effects and errors.

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 50%: `args` is documented in-schema but `name` is not. The description partially compensates by saying the script is selected "by name" and that valid names come from iph_scripts, which is real added meaning. `args` receives no elaboration beyond the schema's own sentence, so it is neither compensating nor deficient.

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 a saved script by name ... get its outputs" gives a specific verb plus resource, and it explicitly routes script discovery to iph_scripts and ties itself to sibling iph_script. The only softness is that "Same result as iph_script" implies near-duplication without saying what makes iph_run distinct beyond "in one call."

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

Usage Guidelines3/5

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

The parenthetical "(see iph_scripts)" tells the agent where to get a valid name, and iph_script is named as a related tool. However, it never states when to choose this tool over iph_script — saying they yield the same result leaves the selection rule to inference, and there are no exclusions or preconditions.

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