Skip to main content
Glama

run_workflow

Destructive

Start one run of a saved workflow with inputs, using the selected workSessionId. Its steps, which get_workflow shows, are calls to the file, document and command tools save_workflow lists, made in order through the same tools and folder checks as calling each one directly. Pass expectedVersion from get_workflow to refuse a definition changed since review. Validates every step before any run; stops on the first error. Requires read, write and process permissions; a permission turned off during a run stops it before its next step. Returns runId; poll workflow_status, or stop it with cancel_workflow. Completed steps are not rolled back or replayed automatically. Commands are bounded by their normal timeout.

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

Input Schema

NameRequiredDescriptionDefault
inputsNo
deviceIdNoComputer name or id
workflowIdYes
workSessionIdNoFrom create_work_session
expectedVersionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id; optional with one computer or a default"New value: +"Computer name or id"
  2. Changed2 schema fields changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id from list_devices. Optional with one computer online or a default set."New value: +"Computer name or id; optional with one computer or a default"
    • changedInput schema / properties / workSessionId / description
      Previous value: -"Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work."New value: +"From create_work_session"
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructive and open-world, and the description substantiates exactly why: completed steps are not rolled back or replayed, a permission revoked mid-run halts before the next step, and required read/write/process permissions are enumerated. It also discloses pre-flight validation of every step, stop-on-first-error semantics, and that commands inherit their normal timeout, which the annotations cannot convey.

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?

Dense and front-loaded: the action, the guard, the failure model, the permission requirement and the return/follow-up all arrive in the first few sentences with no filler. The mid-sentence clause about steps being 'calls to the file, document and command tools' is slightly convoluted, but each sentence still carries distinct information.

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 multi-step, destructive execution tool with no output schema, the description covers what an agent needs: the returned runId, how to track or cancel it, validation-before-execution, failure and permission-revocation behavior, and non-replayable partial completion. Only deviceId routing is under-explained.

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?

With only 40% schema coverage, the description carries real weight: it explains that inputs supplies per-run values, that workSessionId selects the session context, and that expectedVersion comes from get_workflow and causes refusal on a changed definition. deviceId is left entirely to its brief schema note, which is the one remaining gap.

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 opening clause names a specific verb and resource ('Start one run of a saved workflow with inputs') and scopes it to a workSessionId, which cleanly separates it from get_workflow (inspect), save_workflow (define), workflow_status (poll) and cancel_workflow (abort). An agent can identify the operation without opening the 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 the execution context ('using the selected workSessionId'), tells the agent to pass expectedVersion from get_workflow as a guard, and names the two follow-up paths explicitly: poll workflow_status or stop with cancel_workflow. That is concrete when-to-use and what-next guidance tied to named siblings.

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