Skip to main content
Glama

update_draft

Update a draft workflow by modifying its name, description, or steps. Replace all existing steps with a complete list to finalize the workflow after design or incorporate user feedback.

Instructions

[WRITE] Update a DRAFT workflow's name, description, or steps.

Call this after design_workflow() to fill in the actual steps, or to modify steps based on user feedback.

Each step dict: {action, skill, tool, params, rollback_tool?, rollback_params?} Use action="require_approval" for approval gates.

Args: workflow_id: The draft workflow ID. name: Workflow name (optional, updates workflow_type). description: Human-readable description. steps: Complete list of steps (replaces all existing steps).

Returns: Updated workflow summary for user review.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflow_idYes
nameNo
descriptionNo
stepsNo
Behavior4/5

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

Annotations indicate a write operation and non-destructiveness; the description adds that steps are entirely replaced and that name updates workflow_type. It also discloses return value. This goes beyond annotations, though it could mention side effects like step count changes.

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?

The description is appropriately sized for an update tool with structured parameters. It front-loads the purpose and usage, then provides parameter details. Minor improvement: could be slightly more compact by removing redundant phrasing.

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?

Given no output schema, it describes the return value as 'updated workflow summary for user review.' It also distinguishes between required and optional fields. The description covers the tool's role in the workflow lifecycle. Missing info on permission or error states, but overall sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Despite 0% schema description coverage, the description includes a detailed 'Args:' section explaining each parameter, including the steps dict structure with required keys. This adds significant meaning not present in the input schema.

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 explicitly states 'Update a DRAFT workflow's name, description, or steps.' It uses a clear verb and specific resource, distinguishing from siblings like design_workflow (creation) and confirm_draft (finalization).

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?

Provides explicit usage guidance: 'Call this after design_workflow() to fill in the actual steps, or to modify steps based on user feedback.' It implies when to use and alternatives, though could more explicitly mention when not to use (e.g., when the workflow is no longer a draft).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zw008/VMware-Pilot'

If you have feedback or need assistance with the MCP directory API, please join our Discord server