ghl-workflow-mcp
v1.3.2Connect your AI agent (Claude, Cursor, VS Code and others) to the GHL Workflow Backup & Audit Chrome extension.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_workflows List workflows
List the workflows in the GoHighLevel sub-account: ID, status (draft or published), folder and name, 250 per page. Filter by search (name, ID or folder), folder, status or triggerType. triggers: true (or triggerType) also shows each workflow's triggers with name, type and whether each is on or OFF: the quick way to check a set is live. That reads every workflow, so the first call can take a minute or two; later calls re-read only the workflows changed since.
| Parameter | Type | Description |
|---|---|---|
folder | string | A folder path ("Sales / Follow-ups"), or one folder's name; includes its subfolders. "(top level)" for workflows in no folder. |
locationId | string | GHL sub-account (location) ID. Leave out to use the sub-account open in Chrome. |
offset | integer | Skip this many rows (for the next page). |
search | string | Part of a workflow name or ID. |
status | string | |
triggerType | string | Part of a trigger type, for example "contact_tag" or "form". |
triggers | boolean | Show each workflow's triggers and whether they are on. |
get_folder Get folder
Read every workflow in a folder and its subfolders in one call, each in the same form as get_workflow, with folderPath. Pages by whole workflows; a workflow too big for a page comes as its outline (use get_steps for detail). summary: true gives each workflow in brief instead, in one answer: status, triggers on or OFF, step counts, waits already passed or named differently from their setting, and texts sent as more than one message. Use it to check a set is ready, or to re-check after a fix.
| Parameter | Type | Description |
|---|---|---|
folder * | string | A folder path ("Sales / Follow-ups") or one folder's name, from list_workflows. |
locationId | string | GHL sub-account (location) ID. Leave out to use the sub-account open in Chrome. |
offset | integer | The workflow to continue from (given at the end of the previous page). |
summary | boolean | Each workflow in brief, without its steps. |
export_emails Export emails to files
Save the HTML of every email in a workflow, or in every workflow of a folder, as .html files on this computer (emails built from a saved template included), and list them: workflow, step, subject and file. Use it to read many email bodies in full; get_steps with html: true fits only a few per answer.
| Parameter | Type | Description |
|---|---|---|
folder | string | A folder (path or name) instead of one workflow. |
locationId | string | GHL sub-account (location) ID. Leave out to use the sub-account open in Chrome. |
saveDir | string | Where to save. Defaults to a "ghl-emails" folder in the agent's working folder. |
workflowId | string | Workflow ID, from list_workflows. |
compare_workflows Compare two workflows
What differs between two workflows, such as two copies of the same workflow for different regions or months: steps only in one, steps whose settings differ (by setting path, both values), trigger differences and setting differences. Steps are matched by ID (copies keep them), then by type and name. Leave out workflowB to see what changed in workflowA since you last read it in this session (get_workflow, get_steps, get_folder or an earlier compare): the quick way to check a fix without reading the whole workflow again.
| Parameter | Type | Description |
|---|---|---|
workflowA * | string | First workflow ID. |
locationId | string | GHL sub-account (location) ID. Leave out to use the sub-account open in Chrome. |
workflowB | string | Second workflow ID. Leave out to compare workflowA with your last read of it. |
map_links Map links between workflows
How workflows link to each other: for each tag, which workflows add it, remove it, start when it is added or removed, and check it in a condition; which workflows add contacts to or remove them from which; and workflows that add the tag that starts them. Give folder to see only that folder and whatever links to it. Reads every workflow in the sub-account, so the first call can take a minute or two.
| Parameter | Type | Description |
|---|---|---|
folder | string | Limit to a folder (path or name) and what links to it. |
locationId | string | GHL sub-account (location) ID. Leave out to use the sub-account open in Chrome. |
offset | integer | Skip this many rows (for the next page). |
search | string | Part of a tag or workflow name. |
get_workflow Get workflow
Read one whole workflow in the extension's export format (version 2): every step, every trigger, settings, the names of the tags, fields, forms and other things it uses, and when each timed wait fires (waitSchedule). Builder display settings and email preview links are left out. A very large workflow comes back as an outline of its steps; then use get_steps for detail. To read only some steps, or only the settings or triggers, use get_steps instead: it is much smaller. Call get_audit_guide first if you are reviewing it.
| Parameter | Type | Description |
|---|---|---|
workflowId * | string | Workflow ID, from list_workflows. |
locationId | string | GHL sub-account (location) ID. Leave out to use the sub-account open in Chrome. |
offset | integer | For a very large workflow: the outline step to continue from. |
waits | boolean | false leaves out waitSchedule, when you have it already. |
message_timeline Message timeline and checks
Every message in a workflow (SMS, email and other sends) in the order it is sent, on every path, with when it goes out: an exact time in the sub-account's time zone and any audience zones you name, a time in each contact's own zone, or how long after the contact enters. Flags SMS and WhatsApp sent in quiet hours (9 PM to 8 AM unless you set others). Also checks the messages: text pasted twice in one message, leftover placeholders ([INSERT LINK], TBD, empty {{ }}), two messages with exactly the same text, "starts in 20 minutes" sent at the wrong time before the event, and "N hours left" claims…
| Parameter | Type | Description |
|---|---|---|
workflowId * | string | Workflow ID, from list_workflows. |
locationId | string | GHL sub-account (location) ID. Leave out to use the sub-account open in Chrome. |
quietEnd | integer | Quiet hours end, 24-hour clock. Default 8 (8 AM). |
quietStart | integer | Quiet hours start, 24-hour clock. Default 21 (9 PM). |
text | boolean | false leaves out the short excerpt of each message. |
zones | array | Extra time zones to show exact times in, as IANA names: "America/New_York", "America/Los_Angeles". |
check_links Check links
Open every link a contact can click in a workflow, or in every workflow of a folder, and say whether it works: Public, Login required, Not found, Didn't load, Server error, Maybe closed (the page says registration is closed, expired and so on, quoted in `says`), or Blocked the check. Follows redirects, so a short link shows where it really goes (finalUrl), and gives the page title to compare with what the message says it is. Covers email and SMS text, saved email templates and trigger links (checked at their destination). Also flags empty links and buttons. Or pass urls to check addresses of y…
| Parameter | Type | Description |
|---|---|---|
folder | string | A folder (path or name) instead of one workflow. |
fresh | boolean | Open every link again instead of using results from the last 10 minutes. |
locationId | string | GHL sub-account (location) ID. Leave out to use the sub-account open in Chrome. |
urls | array | Addresses to check instead of a workflow's links. |
workflowId | string | Workflow ID, from list_workflows. |
run_history Run history
What actually happened when contacts went through a workflow, from GoHighLevel's execution logs and enrollment history (kept about 60 days). Read-only. With workflowId: how many contacts wait at each step right now (waitingNow), the latest log events (each step a contact reached: done, skipped, failed with GoHighLevel's reason, waiting until when), and the latest enrolments (who entered, by which trigger, where they are now). Add contactId, or executionId (a log event's `run`), to follow one contact's run step by step, oldest first: the way to see why a test message failed or was skipped, or t…
| Parameter | Type | Description |
|---|---|---|
after | string | The `after` value of a previous answer, for the next page of that part. |
contactId | string | One contact (from an earlier answer, or the contact's page address in GoHighLevel). |
days | integer | How far back. Default 30, at most 59. |
executionId | string | One run: the `run` of a log event or enrolment. |
limit | integer | Rows per part. Default 50, or 99 for one contact or run. |
locationId | string | GHL sub-account (location) ID. Leave out to use the sub-account open in Chrome. |
parts | array | Which parts to read. Default all three (with workflowId). |
status | string | "failed" for failed steps only. Default all. |
test | boolean | Test runs (from Test workflow) instead of live ones. |
workflowId | string | Workflow ID, from list_workflows. |
get_steps Get steps
Full detail of chosen steps of a workflow, by step ID (from get_workflow's outline). Ask for up to about 30 at a time; any that do not fit are named so you can ask again. Email bodies come back as text (htmlText) with their links (htmlLinks); ask with html: true for the HTML itself, which you need to copy an email step into a draft. include: ["triggers"] and/or ["settings"] returns the workflow's triggers or its settings and status, with or without steps.
| Parameter | Type | Description |
|---|---|---|
workflowId * | string | Workflow ID, from list_workflows. |
html | boolean | Return email bodies as HTML instead of text. |
include | array | Also (or only) the triggers and/or the settings. |
locationId | string | GHL sub-account (location) ID. Leave out to use the sub-account open in Chrome. |
stepIds | array | Step IDs. |
get_references Get references
The named things in the sub-account that workflows point at (tags, custom fields, forms, surveys, calendars, pipelines, users, workflows and more). With no arguments: how many of each type. With type and/or search: the matching entries as ID and name.
| Parameter | Type | Description |
|---|---|---|
locationId | string | GHL sub-account (location) ID. Leave out to use the sub-account open in Chrome. |
offset | integer | Skip this many rows (for the next page). |
search | string | Part of a name or ID. |
type | string | One type, for example "tags" or "customFields". |
find_usage Find usage
Find every workflow, step and trigger that uses something: a tag, custom field, form, workflow, link or ID. Matches names partly and case-insensitively. Reads every workflow in the sub-account, so the first call can take a minute or two; later calls re-read only the workflows changed since, so the next pages come back at once.
| Parameter | Type | Description |
|---|---|---|
query * | string | A name, ID or piece of a link. |
locationId | string | GHL sub-account (location) ID. Leave out to use the sub-account open in Chrome. |
offset | integer | Skip this many rows (for the next page). |
validate_workflow Validate a workflow
Check a workflow before creating it, without creating anything: whether it can be read, broken links between steps, step or trigger types this sub-account has never used, and tags, fields, forms or other items that do not exist here. The first call in a sub-account reads all its workflows to learn the types it uses, so it can take a minute or two. Build it from real steps: take them from existing workflows with get_workflow and get_steps and change what you need; do not invent step or trigger types or settings (types this sub-account has never used are refused). Every step needs a unique id (a…
| Parameter | Type | Description |
|---|---|---|
workflow * | The workflow in export format: { workflowName, nodes: [...steps], triggers: [...], references }. The shape get_workflow and get_steps return. | |
locationId | string | GHL sub-account (location) ID. Leave out to use the sub-account open in Chrome. |
create_draft_workflow Create a draft workflow
Create a NEW draft workflow in GoHighLevel. Its name gets "[AI] " in front unless the user switched that off in Settings. It never changes, publishes or deletes an existing workflow; to change one, create an edited copy and the user swaps it in. To copy an existing workflow with some text changed or steps removed, use clone_workflow instead: it needs no steps passed in. Works only when the user has switched on "Allow drafts" in the extension Settings, and every call waits for the user to approve it in a window that shows the steps and your reason (up to 5 minutes), so tell the user to look for…
| Parameter | Type | Description |
|---|---|---|
reason * | string | One or two sentences for the user: what this draft is and why. Shown on the approval window. |
workflow * | The workflow in export format: { workflowName, nodes: [...steps], triggers: [...], references }. The shape get_workflow and get_steps return. | |
folder | string | Folder for the draft: a path as list_workflows shows it ("Sales / Follow-ups"), a unique folder name, or a folder id. It must exist. |
locationId | string | GHL sub-account (location) ID. Leave out to use the sub-account open in Chrome. |
name | string | Exact name for the new draft (before any "[AI] "). Defaults to the workflow's own name. |
clone_workflow Clone a workflow with changes
Copy an existing workflow as a NEW draft, with text replaced and steps removed, in one call; the original is never touched. For example a copy for another region or month: replace "Sydney" with "New York" and "AEST" with "ET" in every message, and drop two steps. Settings come with it, the SMS sender number included. Replace rules change the text of steps (messages, subjects, names and other text settings), never ids or links between steps; with triggers: true a rule also changes the triggers. Rules match without regard to case unless matchCase is true. Steps are removed by id (from get_workfl…
| Parameter | Type | Description |
|---|---|---|
reason * | string | One or two sentences for the user: what this copy is for. Shown on the approval window. |
workflowId * | string | Workflow ID, from list_workflows. |
folder | string | Folder for the draft: a path as list_workflows shows it ("Sales / Follow-ups"), a unique folder name, or a folder id. It must exist. |
locationId | string | GHL sub-account (location) ID. Leave out to use the sub-account open in Chrome. |
name | string | Exact name for the copy (before any "[AI] "). Defaults to "<original name> (copy)". |
removeSteps | array | Ids of steps to leave out of the copy. |
replace | array | Replace rules, applied in order. |
edit_workflow Edit an existing workflow
Change an EXISTING workflow in place: replace text in its steps, change the name or settings (attributes) of a step, remove steps, or change workflow settings. For example fix the subject of one email, change a wait from 2 to 3 days, or correct a date in an SMS, without cloning the whole workflow. Works only when the user has switched on "Allow editing existing workflows" in the extension Settings; a published workflow also needs "Also allow editing published workflows", and a change to it is LIVE at once. Every call waits for the user to approve it in a window that shows the workflow and each…
| Parameter | Type | Description |
|---|---|---|
reason * | string | One or two sentences for the user: what you change and why. Shown on the approval window and kept in History. |
workflowId * | string | Workflow ID, from list_workflows. |
locationId | string | GHL sub-account (location) ID. Leave out to use the sub-account open in Chrome. |
removeSteps | array | Ids of steps to remove. |
replace | array | Replace rules for step text, applied in order. |
settings | object | Workflow settings to change: timezone, allowMultiple, allowMultipleOpportunity, stopOnResponse, removeContactFromLastStep, autoMarkAsRead. |
updateSteps | array |
get_audit_guide Get audit guide
Instructions for reviewing a workflow: how to read the export format, what counts as a real problem, and the HTML report to produce. Use before auditing any workflow. If it ends by naming an offset, call again with it for the rest.
| Parameter | Type | Description |
|---|---|---|
offset | integer | Where to continue a long guide (given at the end of the previous part). |