Skip to main content
Glama

jamjet_run_workflow

Starts a durable workflow execution for a registered workflow and returns an execution ID for monitoring, event retrieval, cancellation, or approval.

Instructions

Start a new durable workflow execution. Use this to kick off a workflow that has already been registered with the runtime. Side effects: creates a new execution record, appends WorkflowStarted and NodeScheduled events to the event log, and enqueues a work item for the first node — the workflow begins processing immediately. Returns a JSON object with the execution_id (format: exec_) that you can pass to jamjet_get_execution, jamjet_get_events, jamjet_cancel_execution, or jamjet_approve. This operation is not reversible — use jamjet_cancel_execution to stop a running workflow. Fails if the workflow_id + version combination is not registered. Outside dev mode the bridge requires a Bearer API token with the developer or operator role.

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": {
      "workflow_id": "<workflow_id>",
      "input": "<input>"
    },
    "name": "jamjet_run_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesInitial state data passed to the workflow's first node. Shape must match the workflow's state_schema.
tenant_idNoTenant partition for multi-tenant isolation. Outside dev mode the tenant is the API token's tenant and a different value is refused. In dev mode defaults to 'default'.
workflow_idYesID of a registered workflow to execute. Must match a workflow previously loaded into the runtime.
workflow_versionNoSemantic version of the workflow to run. Defaults to '1.0.0' if omitted. Use when multiple versions are registered.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.8.7
    • changedInput schema / properties / tenant_id / description
      Previous value: -"Tenant partition for multi-tenant isolation. Defaults to 'default'. Execution and events are scoped to this tenant."New value: +"Tenant partition for multi-tenant isolation. Outside dev mode the tenant is the API token's tenant and a different value is refused. In dev mode defaults to 'default'."
  2. Addedv0.8.2
  3. Removedv0.8.1
  4. Changed4 schema fields changedv0.1.1
    • changedInput schema / properties / input / description
      Previous value: -"Input data for the workflow"New value: +"Initial state data passed to the workflow's first node. Shape must match the workflow's state_schema."
    • changedInput schema / properties / tenant_id / description
      Previous value: -"Tenant ID (default: default)"New value: +"Tenant partition for multi-tenant isolation. Defaults to 'default'. Execution and events are scoped to this tenant."
    • changedInput schema / properties / workflow_id / description
      Previous value: -"ID of the workflow to run"New value: +"ID of a registered workflow to execute. Must match a workflow previously loaded into the runtime."
    • changedInput schema / properties / workflow_version / description
      Previous value: -"Workflow version (default: 1.0.0)"New value: +"Semantic version of the workflow to run. Defaults to '1.0.0' if omitted. Use when multiple versions are registered."
  5. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and meets it: it enumerates the side effects (execution record created, WorkflowStarted/NodeScheduled events appended, work item enqueued), states processing begins immediately, and flags the operation as not reversible. It also discloses the Bearer token role requirement outside dev mode and the registration precondition.

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 is front-loaded and the follow-on sentences cover effects, return value, reversibility, failure mode, and auth in a logical order. It is dense with no filler, though the enumeration of four downstream tools is slightly list-heavy for a description.

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?

There is no output schema, and the description compensates by specifying the return object and the exec_<uuid> format. Side effects, irreversibility, failure conditions, and auth requirements are all covered, which is everything an agent needs to invoke a state-mutating workflow-start tool 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 by stating that the workflow_id + version *combination* must be registered — a cross-parameter constraint the schema does not express. The execution_id format and downstream consumers of the return value are also clarified, though they concern output rather than input.

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 first sentence gives a specific verb and resource ("Start a new durable workflow execution"), and the second narrows scope to "a workflow that has already been registered with the runtime." It also names the downstream siblings (get_execution, get_events, cancel_execution, approve), so an agent can place it precisely in the lifecycle.

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?

Guidance is explicit: use it when the workflow is already registered, it fails if the workflow_id + version combination is not registered, and jamjet_cancel_execution is named as the way to stop a run instead. The dev-vs-production auth condition is also stated, so the agent knows prerequisites before calling.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.