Skip to main content
Glama

create_workflow

Create custom multi-step workflows by defining actions, skills, and tools. Supports approval gates and rollback for automation across VMware services.

Instructions

[WRITE] Create a custom workflow dynamically from a step list.

Use this when none of the built-in templates match. Describe what you need and the AI will design the steps using available skills.

Available skills and their key tools:

  • aiops: vm_power_on, vm_power_off, deploy_linked_clone, vm_create_plan, vm_apply_plan, vm_rollback_plan, vm_guest_exec, batch_clone_vms

  • monitor: get_alarms, get_events, list_virtual_machines, vm_info

  • nsx: create_segment, delete_segment, create_tier1_gateway, list_segments

  • nsx-security: create_dfw_rule, delete_dfw_rule, create_group

  • aria: get_capacity_overview, list_anomalies, list_alerts, get_remaining_capacity

  • vks: create_tkc_cluster, scale_tkc_cluster, delete_tkc_cluster

  • storage: storage_iscsi_enable, storage_iscsi_add_target, vsan_health

Special step actions:

  • require_approval: Pauses workflow for human confirmation

Each step dict must have: action, skill, tool, params. Optional: rollback_tool, rollback_params.

Args: name: Workflow name (used as workflow_type). description: Human-readable description. steps: List of step dicts, each with action/skill/tool/params. save_as_template: If True, save as YAML to ~/.vmware/workflows/ for reuse.

Returns: dict with workflow_id and plan summary. Call run_workflow to execute.

Example: create_workflow( name="network_segment_setup", description="Create segment with NAT and verify", steps=[ {"action": "create_segment", "skill": "nsx", "tool": "create_segment", "params": {"segment_id": "app-seg", "display_name": "App Segment", ...}}, {"action": "create_nat", "skill": "nsx", "tool": "create_nat_rule", "params": {"tier1_id": "app-t1", "rule_id": "snat-1", ...}}, {"action": "verify", "skill": "nsx", "tool": "list_segments", "params": {}}, ] )

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
descriptionYes
stepsYes
save_as_templateNo
Behavior4/5

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

Annotations indicate readOnlyHint=false, destructiveHint=false, and openWorldHint=true. The description confirms a write operation and reveals a side effect: saving as YAML template when save_as_template=True. It does not contradict annotations and adds behavioral context beyond structured data.

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?

The description is well-structured and front-loaded: it begins with purpose, then provides usage guidance, lists skills, explains parameters, returns, and gives an example. Every sentence adds value without redundancy, achieving conciseness despite length.

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?

Given no output schema, the description adequately covers return value (dict with workflow_id and plan summary). It explains steps structure, available skills, special actions like require_approval, and includes a complete example. This comprehensive context enables correct tool selection and invocation.

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?

Schema coverage is 0%, so the description fully compensates by explaining each parameter in detail. It steps structure (action, skill, tool, params, optional rollback) and behavior of save_as_template. The example further clarifies usage, adding significant meaning beyond the bare 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 clearly states that the tool creates a custom workflow from a step list, using the '[WRITE]' prefix and explicit verb. It distinguishes from siblings by advising use when built-in templates don't match, and lists available skills, making purpose unambiguous.

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?

The description provides explicit guidance on when to use ('when none of the built-in templates match') and how to use, including an example and note that AI designs steps. It also directs to call run_workflow to execute, covering the full workflow lifecycle.

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