Skip to main content
Glama

Run Macro Tool

run-macro-tool
Destructive

Replay a recorded macro (or a raw step list) on one farm phone: exact taps, swipes and typing, with no AI deciding anything. The phone must show video_live: true in list-phones-tool. Give exactly one of:

  • workflow (string): a macro name from list-macros-tool (the user's own or a system one), with params filling its {{placeholders}}.

  • steps (array): a raw step list run as-is (each step needs an "action"). For a task described in words, use run-phone-agent-tool (one phone, once) instead. A full workflow can run for minutes, so this queues the run and returns its run id immediately. Poll get-phone-run-tool with that id until it succeeds or fails.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slotYesPhone slot to run on, given as the `slot` UUID from list-phones-tool (its display name like "slot12" is not accepted). The phone must show `video_live: true` there.
stepsNoRaw step list to run as-is; each step needs an "action". Give this OR workflow, not both.
paramsNoValues for the macro's `parameters` from list-macros-tool, keyed by name; scalars only. Optional.
workflowNoMacro `name` from list-macros-tool. Give this OR steps, not both.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / params / description
      Previous value: -"Scalar params for the workflow's {{placeholders}} (for workflow). Optional."New value: +"Values for the macro's `parameters` from list-macros-tool, keyed by name; scalars only. Optional."
    • changedInput schema / properties / slot / description
      Previous value: -"Phone slot to run on, given as the `slot` UUID from list-phones (its display name like \"slot12\" is not accepted). Must be cast/live."New value: +"Phone slot to run on, given as the `slot` UUID from list-phones-tool (its display name like \"slot12\" is not accepted). The phone must show `video_live: true` there."
    • changedInput schema / properties / workflow / description
      Previous value: -"Named workflow / system macro to resolve and run. Give this OR steps, not both."New value: +"Macro `name` from list-macros-tool. Give this OR steps, not both."
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare write/destructive/open-world, but the description adds genuinely new behavioral context: the run can take minutes, it is queued and returns a run id immediately rather than blocking, and the agent must poll get-phone-run-tool until success or failure. That async contract is the key fact an agent needs and is not derivable from annotations.

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 the tool does, then the precondition, then the two input modes as a compact bulleted either/or. Slightly dense but every sentence carries an operational constraint; the alternative-tool note is placed exactly where the ambiguity arises.

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 destructive, open-world, no-output-schema tool it covers the full loop: prerequisite state check, one-of input modes, async queue-and-poll return semantics, and the sibling to use for natural-language tasks. An agent has everything needed to call it and handle the result.

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 baseline is 3, but the description adds real meaning: slot must be the UUID not the display name, workflow must be a name from list-macros-tool, params fill {{placeholders}} and must be scalars, and steps are run as-is with each needing an action.

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 specific verb+resource+scope: 'Replay a recorded macro (or a raw step list) on one farm phone: exact taps, swipes and typing, with no AI deciding anything.' It explicitly differentiates itself from the sibling run-phone-agent-tool, so an agent can route without opening either 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 when-to-use (recorded macro or raw step list), when-not (tasks described in words → run-phone-agent-tool), a precondition (phone must show video_live: true in list-phones-tool), and the mutual-exclusion rule for workflow vs steps. Nothing is left to inference.

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