Skip to main content
Glama

apply_workflow_draft

Publishes a workflow preview from the verified active builder task without saving a workflow, using the expected draft revision to reject stale changes.

Instructions

Publish a preview from the verified active builder task; never write a saved workflow.

Positions are top-left logical points, with finite x/y >= 0, on a 10-point dot grid. Agent nodes are 200 x 92 points (reserve 20 x 10 grid cells); Start/End are 72 x 72 (reserve 8 x 8 cells). Leave at least 40 points (4 cells) between node edges; no overlaps. Use routing_mode="explicit". Ordinary outgoing paths are exclusive alternatives. Parallel execution requires paired parallel_start/parallel_end structural nodes with a shared parallel_group_id; every branch must reach its matching end. Parallel start defaults to branch_selection: "all". With branch_selection: "orchestrator", the orchestrator selects applicable issued branch continuations, assigns each selected entry through branch_assignments, and records a non-empty selection_reason explaining selections and exclusions before dispatch. Optional selection_guidance advises that choice. Selected branches may contain multiple steps and properly nested groups; convergence uses the frozen selected membership, including singleton selections. Preserve existing node positions exactly unless the user explicitly asks to move or rearrange them. The canvas expands automatically; do not constrain nodes to a fixed viewport.

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": {
      "definition": "<definition>",
      "expected_draft_revision": "<expected_draft_revision>"
    },
    "name": "apply_workflow_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
definitionYes
expected_draft_revisionYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.14

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose key behavior: it publishes a preview rather than persisting a saved workflow, and the canvas expands automatically without a fixed viewport. It omits permission requirements, idempotency, and what happens on revision conflict, which matters for a publish operation with zero annotation coverage.

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

Conciseness3/5

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

The purpose sentence is correctly front-loaded, but the body is a dense unbroken block mixing geometry rules, routing rules, and parallel-branch semantics with no paragraph structure. Most sentences carry real information, yet the lack of grouping makes it hard to scan for the rule an agent actually needs.

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?

An output schema exists, so return values need not be explained, and the definition payload is covered in depth. However, for a two-parameter publish tool with a nested free-form object and no annotations, the missing revision/conflict semantics and the absent permission or failure behavior leave a real gap.

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 coverage is 0%, so the description must compensate. It adds substantial meaning for the `definition` object (coordinate system, node sizes, spacing, routing_mode, parallel group structure, branch_selection semantics), but says nothing about `expected_draft_revision`, which appears to be an optimistic-concurrency token and is left entirely undocumented.

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?

The first sentence gives a specific verb and object ('Publish a preview from the verified active builder task') and adds a negative scope clause ('never write a saved workflow') that separates it from save_workflow. It stops short of naming a sibling tool, so the differentiation is inferential rather than explicit.

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?

The prerequisite 'verified active builder task' implies when this is callable, but the description never states when to choose this over save_workflow or preview_workflow_run, nor what to do if the draft isn't verified. The remainder of the text is construction guidance for the payload, not usage guidance.

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