Skip to main content
Glama
ampware-io

GHL Workflow MCP

by ampware-io

patch_workflow

Destructive

Apply ordered patch operations to GoHighLevel workflows to insert, update, delete, move, or rewire steps and triggers; abort all changes if any operation fails.

Instructions

Apply an ordered list of patch operations to a workflow with deterministic server-side pointer rewiring. Ops: insert_after / update_step / delete_step / move / rewire_step (plus add_trigger / update_trigger / remove_trigger). Param roles — step_id = the SUBJECT the op acts on (update_step/delete_step/move/rewire_step); after_step_id = the ANCHOR to position after (insert_after/move); next = the target pointer for rewire_step (a step ID or null to terminate); trigger_id = the subject trigger. insert_after also accepts step_id as an alias for after_step_id. rewire_step overwrites a non-branched step scalar next in place (no splice, no reorder) — it does NOT validate for cycles or orphaned downstream steps; the caller owns flow correctness. All-or-nothing: any op failure aborts before any GHL write. Detects external workflow changes via the version field. Use after read_workflow_outline + read_workflow_step. For whole-workflow rewrites or branched-step splices, fall back to update_workflow. For field meanings, allowed values and worked examples for every step type, use the GHL Workflow Docs MCP.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationsYesOrdered list of patch operations
workflowIdYesWorkflow ID (from list_workflows)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare destructiveHint=true, yet the description discloses transactional semantics (all-or-nothing, aborts before any GHL write), optimistic-concurrency behavior (detects external workflow changes via the version field), and an explicit non-guarantee (rewire_step does not validate for cycles or orphaned downstream steps; the caller owns flow correctness). That 'you are responsible for' framing is exactly the kind of hazard disclosure a destructive tool needs.

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?

Front-loaded with the core purpose before diving into op taxonomy and semantics, and every clause carries information. It is dense to the point of terseness in the 'Param roles —' fragment, and some op-list detail duplicates the schema's const values, which slightly dilutes conciseness.

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?

For a destructive, no-output-schema mutation tool with a highly polymorphic operations array, the description covers purpose, op semantics, parameter roles, failure semantics, concurrency, prerequisites, and the escape hatch to a sibling. Nothing an agent needs to call this safely appears missing.

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 baseline is 3, but the description adds real semantic value the schema cannot express: the subject-vs-anchor distinction between step_id and after_step_id, the step_id alias accepted by insert_after, and that next is a scalar pointer overwrite rather than a splice. The only gap is that per-op required-field combinations are left to the schema's anyOf.

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?

States a specific verb (apply an ordered list of patch operations) on a specific resource (a workflow) with a stated mechanism (deterministic server-side pointer rewiring). It enumerates the exact op set and explicitly distinguishes itself from the sibling update_workflow for whole-workflow rewrites. An agent can select this over update_workflow without opening either schema.

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?

Explicit prerequisites ('Use after read_workflow_outline + read_workflow_step'), an explicit exclusion boundary ('For whole-workflow rewrites or branched-step splices, fall back to update_workflow'), and a pointer to the docs MCP for field meanings. This is the when/when-not/alternatives pattern at full strength.

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