Skip to main content
Glama

run_automation

Destructive

Start one of the user's saved AIVane automations with its named inputs, for example to extract data from a website, fill in a form, or download a report. It replays that automation's saved steps on the sites it was built for; it cannot browse or scrape a site that no saved automation covers. It runs on one of the targets listed as available for it: AIVane's cloud browser, a registered device, or this computer through the AIVane desktop app. Returns the final result if it finishes within the wait, or a run_id and status to check with get_run. Wait defaults to 30 seconds, with a maximum of 110 seconds that the server may lower. An unknown result is terminal. Verify what happened before deciding whether to run again, and never auto-retry unknown or RESULT_UNKNOWN. Errors can include NOT_FOUND, NOT_RUNNABLE, INVALID_INPUTS, TARGET_NOT_ALLOWED, TARGET_UNAVAILABLE, QUOTA_EXHAUSTED, RISK_CONSENT_REQUIRED, FILE_INPUT_UNSUPPORTED, CONNECTION_REQUIRED, BUSY (retryable), REQUEST_CONFLICT (same request id with different arguments), SESSION_REQUIRED, or UNAUTHORIZED.

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

Input Schema

NameRequiredDescriptionDefault
inputsNoValues keyed by the automation's input names.
targetNoOmit to choose the first available target. Use local on the local server, or cloud or device:<id> on the cloud server. Each server validates its allowed values.
wait_secondsNoSeconds to wait for a completed result. Defaults to 30, with a maximum of 110 that the server may lower.
automation_idYesThe id returned by list_automations.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only flag it as non-read-only, destructive, open-world and non-idempotent; the description goes well beyond that by explaining the replay model, the three target types, the wait/timeout behavior, the terminal nature of unknown results, and a full enumeration of failure codes including which is retryable (BUSY). That materially informs an agent about risk and re-invocation behavior for a destructive action.

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 and scope come first, then execution model, then return/retry behavior, then errors — a sound front-loaded order. It is dense but nearly every sentence carries a decision-relevant fact; the wait-time sentence duplicates the schema text and the long error list is the only mildly bloaty element.

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 complex, destructive, non-idempotent tool with a nested `inputs` object and no output schema, the definition still tells the agent what comes back (final result or run_id plus status), how to follow up, and what each error class means. Nothing needed to invoke it correctly or interpret the response is missing.

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 description coverage is 100%, so the baseline is 3. The description largely restates schema content (wait defaults to 30, max 110, keyed input values) rather than adding new semantics; the one modest addition is framing the selectable targets as cloud browser, registered device, or local desktop app, which clarifies what `target` actually points at.

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?

The description opens with a specific verb and resource ("Start one of the user's saved AIVane automations with its named inputs") and gives concrete examples (extract data, fill a form, download a report). It also draws a hard boundary that no sibling covers — it replays saved steps and "cannot browse or scrape a site that no saved automation covers" — so an agent can distinguish it from list_automations or get_run 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?

It states when to use it (an existing saved automation with named inputs) and when not to (sites with no saved automation). It routes the agent to the right sibling after a timeout ("a run_id and status to check with get_run") and gives explicit retry policy: verify the result, never auto-retry unknown or RESULT_UNKNOWN.

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