Skip to main content
Glama

Run orchestration

run_orchestration

Start a run of an orchestration (a Synapse workflow) and wait for it to finish or ask a question. Returns the run's status: completed with its response, paused with the question in human_input_required (answer it with answer_run), failed, or running if the wait ran out. Runs spend model credits.

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": {
      "orchestration_id": "<orchestration_id>",
      "message": "<message>"
    },
    "name": "run_orchestration"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsNoOptional starting values for the orchestration's declared state keys.
messageYesWhat the run should work on — its goal or input text.
wait_secondsNoSeconds to wait for the run to finish or ask a question (0-120, default 30). The run carries on after the wait either way; call get_run to pick it up again.
orchestration_idYesThe orchestration's id, or its exact name (see list_orchestrations).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, it discloses that runs spend model credits, that the run continues in the background after the wait expires, and that pausing produces a question requiring answer_run. These are exactly the cost and lifecycle facts the annotations (readOnlyHint=false, openWorldHint=true) cannot convey on their own.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense sentences: action first, then the status taxonomy, then the credit cost. Every clause carries information — the status list doubles as return-value documentation and the cost warning is placed last where it still reads as a caveat.

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 carries the burden of explaining returns, and it does so by naming each terminal status with its payload (`response`, `human_input_required`). Combined with the nested `inputs` param being covered by schema descriptions, nothing material is missing for correct invocation.

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 schema already documents all four parameters and the baseline is 3. The description adds genuine meaning on top: it clarifies that wait_seconds bounds only the wait, not the run, and that a timed-out run is recoverable via get_run.

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 uses a specific verb and resource ('Start a run of an orchestration') and immediately enumerates the observable outcomes (completed/paused/failed/running). It distinguishes itself from answer_run (for paused questions) and get_run (to resume after the wait), so an agent can route between the three 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 Guidelines4/5

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

It gives clear context for use — start a run and block for a result — and names the follow-up tools with their triggering conditions: answer_run when status is paused, get_run when the wait times out. It doesn't state explicit when-not-to-use cases (e.g., for orchestrations with long runtimes where a poll-only path is preferred), which keeps it just short of a 5.

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.