Skip to main content
Glama

execute_workflow

Run a saved Flow to the selected output. After explicit approval, provide the quote ID and approved spending cap for generation, or the plan ID for a non-billable Flow. Reuse the same idempotency key on submission retries.

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

Input Schema

NameRequiredDescriptionDefault
planIdNo
quoteIdNo
maxCostUsdNo
workflowIdYes
workspaceIdYesThe workspace ID
targetNodeIdNo
idempotencyKeyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / idempotencyKey
      Added value: +{
      +  "maxLength": 200,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / maxCostUsd
      Added value: +{
      +  "maximum": 10000,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / planId
      Added value: +{
      +  "pattern": "^[a-f0-9]{64}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / quoteId
      Added value: +{
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • addedInput schema / properties / targetNodeId
      Added value: +{
      +  "maxLength": 160,
      +  "minLength": 1,
      +  "pattern": "^[A-Za-z0-9_-]+$",
      +  "type": "string"
      +}
    • addedInput schema / properties / workflowId / maxLength
      Added value: +160
    • addedInput schema / properties / workflowId / minLength
      Added value: +1
    • addedInput schema / properties / workflowId / pattern
      Added value: +"^[A-Za-z0-9_-]+$"
    • addedInput schema / properties / workspaceId / maxLength
      Added value: +160
    • addedInput schema / properties / workspaceId / minLength
      Added value: +1
    • addedInput schema / properties / workspaceId / pattern
      Added value: +"^[A-Za-z0-9_-]+$"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose costly behavior: the run may be billable, requires prior approval, needs a spending cap, and retries must reuse the same idempotency key. Those are meaningful, non-obvious traits. However, it says nothing about whether execution is synchronous or async, what failure modes look like, or what permissions the caller needs for a mutation of this weight.

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?

Three sentences, front-loaded with the action and then the gating conditions; there is little filler. The phrase "to the selected output" is slightly fuzzy and the sentence packing two branches is dense, but nothing is redundant.

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

Completeness3/5

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

For a seven-parameter, no-annotation, no-output-schema execution tool with billing implications, the definition covers the approval/billing branching and idempotency contract well. It still omits the meaning of targetNodeId, the shape of the result (run handle vs. finished output), and whether the call blocks, which an agent needs to drive follow-up calls like get_workflow_run.

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 only 14% (just workspaceId), so the description must compensate: it explains quoteId, maxCostUsd as an "approved spending cap," planId as the non-billable alternative, and idempotencyKey reuse on retries — covering four of the undocumented parameters. It leaves targetNodeId (plausibly the "selected output") and workflowId unexplained, and it does not state how maxCostUsd relates to the quoted amount.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Run a saved Flow to the selected output" gives a concrete verb (run) and resource (a saved Flow), and the reference to quote/plan IDs signals this is the paid execution step rather than authoring. It does not explicitly distinguish itself from lookalike siblings such as execute_project_jobs or run_video_workflow, so the boundary is left to inference.

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 states a real precondition ("After explicit approval") and branches the call: quoteId plus approved spending cap for billable generation, planId for a non-billable Flow. That is actionable when-to-use guidance. It stops short of naming the prerequisite sibling (e.g. quote_workflow_run) that produces those IDs, so an agent must infer the ordering.

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.