Skip to main content
Glama

ZeroWidth Workbench

Run a Workbench flow

workbench_flows_run

Execute a flow and return its outputs synchronously. Runs the draft by default; pass source:"published" (optionally a version) to run the live published version. Spends workspace LLM budget, bounded by the token's cost cap. input is the flow's input envelope, e.g. {"kind":"chat","messages":[…]} or {"kind":"form","values":{…}}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputNoFlow input envelope (RunFlowInput). Omit for a flow that needs none.
flowIdYesFlow id to run.
sourceNoWhich version to run. Default: draft.
versionNoPublished version label (only with source:"published").
timeoutMsNoMax runtime in ms (also the hard cost ceiling).
workspaceNoWorkspace slug. Personal tokens with no default workspace MUST pass this. Ignored for workspace API keys.
approvalIdNoRe-call with the approvalId from a needs_confirmation response after the user approves.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: it discloses that execution 'Spends workspace LLM budget, bounded by the token's cost cap' and that results come back 'synchronously'. The cost/budget disclosure is exactly the kind of non-obvious operational consequence annotations (readOnlyHint=false, destructiveHint=false) don't capture, and it is consistent with them.

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?

Four tight sentences, front-loaded with the core action and result, then source semantics, cost, and input examples. Every sentence carries information; the only slight sprawl is the inline input examples, but they are useful.

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

Completeness4/5

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

No output schema exists, but the description covers what matters: synchronous return of outputs, budget/cap implications, draft vs published selection, and input envelope shape. The confirmation/approval re-call flow (approvalId) is only documented in the schema, leaving a minor gap for a 7-param tool.

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 the baseline is 3. The description adds real meaning on top: it explains the `source` semantics (default draft vs published-with-optional-version) and illustrates the `input` envelope with concrete examples ({"kind":"chat",...}, {"kind":"form",...}) that the schema does not provide.

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 ('Execute a flow') and adds the key behavioral result ('return its outputs synchronously'). Combined with the draft-vs-published distinction, an agent can distinguish this from sibling tools like workbench_flows_get or workbench_flows_publish 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 Guidelines3/5

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

Conveys the default behavior ('Runs the draft by default; pass source:"published" ... to run the live published version') and the cost context, which implicitly guides selection. However, it never states when to prefer this tool over alternatives (e.g. schedules_run_now, tasks_run_view) or any exclusions, so guidance is implied rather than explicit.

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