Skip to main content
Glama

Run Automation Tool

run-automation-tool
Destructive

Start one of the user's automations now, the same as "Run now" in the web app. The AI agent then drives the automation's phones on its own; this returns the run at once with status "queued". Poll get-automation-run-tool with its id until status is done, failed or stopped, then read outcome, result and phone_reports. A run can be refused (the automation is off, a run is already going, the daily limit is reached, no phone is online, or the agent is unavailable); the error says which.

A tiktok_warmup automation (see list-automations-tool) has no daily limit and starts one session per phone at once, so this returns the first one already "running" alongside sessions, the number started, and skipped_busy_slots, the phones left alone because another run already drives them; payload is ignored, it has no parameters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slotsNoRun on only these of the automation's phones, given as `slot` UUIDs from list-phones-tool. Omit to run on all of them.
payloadNoValues for the automation's `payload_parameters`, keyed by name, the same fields its webhook would receive. Omit when it has none.
automation_idYesThe automation `id` from list-automations-tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare the mutation/destructive profile, and the description goes well beyond them: it discloses asynchronous behavior (returns immediately as 'queued'), the polling contract, the failure/refusal semantics, and the special tiktok_warmup behavior (starts one session per phone, returns 'running' plus sessions/skipped_busy_slots). This is exactly the kind of behavior an agent cannot infer from the structured fields.

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 and the async/polling contract, and every sentence carries information. It is dense and the tiktok_warmup paragraph is long, but it is not padding – each clause adds a behavioral fact the agent needs.

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?

With no output schema, the description compensates by naming the returned fields (id, status, sessions, skipped_busy_slots, outcome, result, phone_reports) and the exact state machine to wait on. For a 3-param, open-world automation trigger this is complete enough to call and follow up correctly.

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 100%, so the baseline is 3, but the description adds real meaning: it clarifies that payload is ignored for tiktok_warmup automations, and ties automation_id/slots to their source tools (list-automations-tool, list-phones-tool). The slots-omit-to-run-all behavior is also reinforced in prose.

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 ('Start one of the user's automations now') and anchors it to the familiar web-app 'Run now' action. An agent can immediately distinguish it from run-macro-tool and run-phone-agent-tool because it is scoped to a user automation by automation_id.

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?

Explicitly names the follow-up tool (get-automation-run-tool), the exact polling condition (until status is done, failed or stopped), and the fields to read afterwards. It also enumerates the refusal conditions (automation off, run in progress, daily limit, no phone online, agent unavailable), so the agent knows what a non-started response means.

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