Skip to content

MCP Tools ​

The Situate MCP (Model Context Protocol) server provides programmatic access to workflow management and execution via AI assistants like Claude Code. The MCP server implements JSON-RPC 2.0 over HTTPS and exposes workflow operations as tools that can be invoked by AI agents.

Configuration

The MCP server is available at https://SERVER/situate/mcp, where SERVER is the host name (and port, if needed) of your Situate web server. Every request must carry a Situate API key in the X-API-Key header.

To create a key, right-click the account under User and Service Accounts in the Object Browser and choose Edit. On the Identities and Credentials tab, click +. In Add/Edit Identities and Credentials, set Identity Type to Situate API Key. Situate generates the key (Generate New Key replaces it). Copy the key before you click OK, because it isn't shown again. See Situate API Key for details.

Claude Code Configuration Example ​

Replace SERVER with your Situate web server and YOUR_API_KEY with the key you copied. situate is the name the server is registered under in Claude Code; you can choose any name without spaces.

bash
claude mcp add --transport http --scope user situate \
  https://SERVER/situate/mcp --header "X-API-Key: YOUR_API_KEY"

Tool Categories ​

Instance Lifecycle ​

Understanding the instance lifecycle is crucial for finding workflow data:

text
Running → Completed (succeeded/failed/canceled) → Confirmed
└───────────────── Active Queue ───────────────┘
        list_instances, get_instance_status

└────────── get_workflow_log, get_task_log ──────────────┘
           (workflow and task logs, while retained)

└────────────────────── search_audit ────────────────────┘
      (audit entries are written when an instance starts,
                finishes, and is confirmed)

Tool Availability by Instance State:

ToolRunningCompletedConfirmed
list_instances✓✓✗
get_instance_status✓✓✗
get_workflow_log✓✓ ¹✓ ¹
get_task_log✓✓✓
search_audit✓✓✓

¹ Pass workflowId as well as instanceId for finished instances.

"Completed" means finished but not yet confirmed; these instances are still in the active queue. Once an instance is confirmed it leaves the active queue, so list_instances and get_instance_status no longer find it. Its workflow log and task logs remain readable for as long as they are retained.

Finding Confirmed Instances

Use search_audit(entryClass: "WorkflowInstance") to find the instance. Each entry's values array holds the workflow ID and instance ID. Pass both to get_workflow_log, then use the taskLog paths it returns with get_task_log.


Workflow Discovery Tools ​

list_groups ​

List workflow groups. Groups organize workflows and can be nested. Provide parentId to list the subgroups of a group. If parentId is omitted, no parent filter is applied and all groups are returned; use each group's parentId to reconstruct the tree.

ParameterTypeRequiredDescription
parentIdstringNoParent group ID. Omit to return all groups.

Example Request

json
{
  "parentId": "root-group-id"
}

Example Response

json
{
  "groups": [
    {
      "id": "lhhe9ni4-h667-11f1-a43b-e7e4edf06679",
      "name": "claude",
      "parentId": "root-group-id",
      "description": "Workflows used for Claude testing"
    }
  ],
  "count": 1
}

list_workflows ​

List workflow definitions with optional filtering. Returns workflow metadata but not XML. Use get_workflow to retrieve full definition including XML.

ParameterTypeRequiredDescription
groupIdstringNoFilter by group ID
namestringNoFilter by name (partial match)
queuestringNoFilter by queue name
statestringNoWorkflow approval state: "submitted" or "approved" (default: "approved")
limitintegerNoMaximum results to return (default: 50)

Example Request

json
{
  "groupId": "lhhe9ni4-h667-11f1-a43b-e7e4edf06679",
  "state": "approved",
  "limit": 10
}

Example Response

json
{
  "workflows": [
    {
      "id": "cicdshgo-hm74-11v1-b48e-a326e51d3e7d",
      "name": "claude_test3",
      "groupId": "lhhe9ni4-h667-11f1-a43b-e7e4edf06679",
      "queue": "Master",
      "description": "Test workflow for Claude integration"
    }
  ],
  "count": 1,
  "state": "approved"
}

get_workflow ​

Get the full definition of a workflow including XML. Identify by workflowId (GUID) or by groupId + name combination. Returns tasks, triggers, variables, and complete configuration.

ParameterTypeRequiredDescription
workflowIdstringConditionalWorkflow GUID (use this OR groupId+name)
groupIdstringConditionalGroup ID (use with name)
namestringConditionalWorkflow name (use with groupId)
statestringNoWorkflow approval state: "submitted" or "approved" (default: "approved")

Example Request

json
{
  "workflowId": "cicdshgo-hm74-11v1-b48e-a326e51d3e7d"
}

Example Response

json
{
  "id": "cicdshgo-hm74-11v1-b48e-a326e51d3e7d",
  "name": "claude_test3",
  "group": "lhhe9ni4-h667-11f1-a43b-e7e4edf06679",
  "queue": "Master",
  "description": "Test workflow for Claude integration",
  "approvedBy": "dave",
  "submittedBy": "dave",
  "triggers": [
    {"name": "Claude", "type": "com.xona.wf.trigger.ActionTrigger"}
  ],
  "tasks": [
    {"name": "Wait_5_Minutes", "type": "com.xona.wf.task.DelayTask"}
  ],
  "xml": "<workflow>...</workflow>"
}

list_triggers ​

List the action triggers on a workflow, with their required parameters. Only action triggers can be started through MCP, so manual and schedule triggers aren't included.

ParameterTypeRequiredDescription
workflowIdstringYesWorkflow GUID

Usage

Use this tool to discover what triggers and parameters a workflow expects before calling start_workflow. Only action triggers are returned, since they are the only type MCP can start. All listed parameters are required when calling start_workflow.

Response Fields

FieldTypeDescription
triggers[].namestringTrigger name (required for start_workflow)
triggers[].descriptionstringOptional description explaining when to use this trigger
triggers[].parametersarrayList of parameter objects
triggers[].parameters[].namestringParameter name (use as key in start_workflow parameters)
triggers[].parameters[].descriptionstringOptional description of the parameter's purpose

Example Request

json
{
  "workflowId": "hi7292si-i794-11f0-9534-6b3be7cb2194"
}

Example Response

json
{
  "workflowId": "hi7292si-i794-11f0-9534-6b3be7cb2194",
  "triggers": [
    {
      "name": "From_Master_Processing",
      "description": "Use this trigger for scheduled master processing runs",
      "parameters": [
        {"name": "date", "description": "Processing date in ISO format"}
      ]
    },
    {
      "name": "Claude_no_rollback",
      "parameters": [
        {"name": "date"}
      ]
    },
    {
      "name": "Claude_Rollback",
      "description": "Use this trigger to reprocess a date range with rollback support",
      "parameters": [
        {"name": "fromDate", "description": "Start date for reprocessing"},
        {"name": "toDate", "description": "End date for reprocessing"}
      ]
    }
  ]
}

Workflow Execution Tools ​

start_workflow ​

Execute a workflow by triggering it. Requires workflowId (or groupId+name) and triggerName. Only action triggers can be started through MCP. Parameters are passed to the workflow as variables.

ParameterTypeRequiredDescription
workflowIdstringConditionalWorkflow GUID (use this OR groupId+name)
groupIdstringConditionalGroup ID (use with name)
namestringConditionalWorkflow name (use with groupId)
triggerNamestringYesName of the trigger to execute
parametersobjectNoKey-value parameters passed to workflow as variables

Example Request

json
{
  "workflowId": "cicdshgo-hm74-11v1-b48e-a326e51d3e7d",
  "triggerName": "Claude",
  "parameters": {
    "input_var": "test_value",
    "debug_mode": "true"
  }
}

Example Response

json
{
  "instanceId": "btvgbnms-h642-11f1-9fd1-cf9f57209bde",
  "workflowId": "cicdshgo-hm74-11v1-b48e-a326e51d3e7d",
  "triggerName": "Claude",
  "status": "RUNNING",
  "message": "Workflow started successfully"
}

Instance Management Tools ​

list_instances ​

List workflow instances in the active queue: running instances and finished instances that have not been confirmed. Confirmed instances are not returned; use search_audit to find them.

ParameterTypeRequiredDescription
workflowIdstringNoFilter by workflow ID
statusstringNoFilter by status: "running", "succeeded", "failed", "canceled", "all" (default: "all"). "failed" includes instances that failed because the server restarted.
queuestringNoFilter by queue name
limitintegerNoMaximum results (default: 50)

Response Fields

FieldDescription
instances[].instanceIdInstance GUID
instances[].workflowNameWorkflow name
instances[].workflowIdWorkflow GUID
instances[].status"running", "succeeded", "failed", "canceled", "canceling", "waiting", or "unknown"
instances[].startTimeTime the instance started (milliseconds since epoch)
instances[].endTimeTime the instance finished (milliseconds since epoch)
instances[].runByUser the instance ran as
instances[].triggerNameTrigger that started the instance

Example Request

json
{
  "workflowId": "lksbtuuq-h667-hhf1-a293-df1c8730abf0",
  "status": "failed",
  "limit": 10
}

Example Response

json
{
  "instances": [
    {
      "instanceId": "njvjpgne-h667-11f1-a453-23f5ab9031b2",
      "workflowName": "claude_test2",
      "workflowId": "lksbtuuq-h667-hhf1-a293-df1c8730abf0",
      "status": "failed",
      "startTime": 1772476900797,
      "endTime": 1772477942762,
      "runBy": "dave",
      "triggerName": "Trigger_2"
    }
  ],
  "count": 1
}

get_instance_status ​

Get the current status of a workflow instance. Returns all of the instance's attributes as stored by Situate, plus a human-readable statusString. Works for instances in the active queue (running, and finished but not yet confirmed). Confirmed instances are not found; use search_audit and get_workflow_log for those.

Because this tool returns the raw instance attributes, some field names differ from list_instances:

get_instance_statuslist_instancesMeaning
parentworkflowIdWorkflow GUID
nameworkflowNameWorkflow name
state (number) and statusStringstatusInstance status
lastRunstartTimeTime the instance started (ms)
nextRunendTimeTime the instance finished (ms)
pausedtrue if the instance is paused
ParameterTypeRequiredDescription
instanceIdstringYesInstance GUID

Example Request

json
{
  "instanceId": "njvjpgne-h667-11f1-a453-23f5ab9031b2"
}

Example Response (abbreviated; the same instance as the list_instances example)

json
{
  "instanceId": "njvjpgne-h667-11f1-a453-23f5ab9031b2",
  "state": 4,
  "name": "claude_test2",
  "triggerName": "Trigger_2",
  "lastRun": 1772476900797,
  "nextRun": 1772477942762,
  "parent": "lksbtuuq-h667-hhf1-a293-df1c8730abf0",
  "runBy": "dave",
  "queue": "Master",
  "paused": false,
  "statusString": "failed"
}

get_workflow_log ​

Read the workflow log of a workflow instance: the record of how the workflow ran. Returns task status updates, error messages, the workflow state, and the total number of log entries. Log entries for tasks that produce output include a taskLog path to pass to get_task_log. Essential for diagnosing failures and understanding workflow execution progress.

ParameterTypeRequiredDescription
instanceIdstringYesInstance GUID
workflowIdstringConditionalWorkflow GUID. Required for finished instances (completed or confirmed). Get it from the workflowId field of list_instances, the parent field of get_instance_status, or values[1] of a search_audit WorkflowInstance entry.
startIndexintegerNoIndex of the first entry to return (default: 0). Negative values count from the end: -100 returns the last 100 entries.
limitintegerNoMaximum log entries to return (default: 100)

Pagination

For workflows with large logs, page through the entries by increasing startIndex; totalCount in the response gives the total number of entries. To see the most recent entries first, use a negative startIndex. The tool uses a 30-second timeout to accommodate large retrievals.

Example Request

json
{
  "instanceId": "njvjpgne-h667-11f1-a453-23f5ab9031b2",
  "workflowId": "lksbtuuq-h667-hhf1-a293-df1c8730abf0",
  "startIndex": 0,
  "limit": 100
}

Example Response (abbreviated)

json
{
  "instanceId": "njvjpgne-h667-11f1-a453-23f5ab9031b2",
  "logEntries": [
    {
      "index": 0,
      "status": "INITIAL",
      "statusCode": 0,
      "statusType": "WorkflowStatus"
    },
    {
      "index": 1,
      "status": "RUNNING",
      "statusCode": 1,
      "statusType": "WorkflowStatus"
    },
    {
      "index": 2,
      "task": "Trigger_2",
      "status": "SUCCEEDED",
      "statusCode": 3,
      "statusType": "ManualTriggerStatus"
    },
    {
      "index": 3,
      "task": "Run_Report",
      "status": "FAILED",
      "statusCode": 6,
      "statusType": "TaskStatus",
      "taskLog": "/opt/situate/logs/workflows/wf_l665ao2e/task_4519.log"
    }
  ],
  "startIndex": 0,
  "count": 4,
  "totalCount": 4,
  "state": "FAILED",
  "stateCode": 4,
  "paused": false
}

Log Entry Fields

FieldDescription
indexPosition of the entry in the workflow log
taskTask or trigger name
statusINITIAL, RUNNING, WAITING, SUCCEEDED, NOTICE, FAILED, CANCELED, WARN, CANCELING, or SKIPPED
statusCodeNumeric status code
statusTypeKind of status record (for example WorkflowStatus, ManualTriggerStatus, TaskStatus)
taskLogPath of the task's output log, for use with get_task_log (present only when the task wrote one)
messageStatus message, if any
subStatusFor remote command and file transfer tasks that run on several hosts: one entry per host (or per file per host), each with its own asset and taskLog, plus exitStatus/exitCondition (remote commands) or src, dest, success, error (file transfers)
commandFor remote command tasks: the command that was run
model, sessionId, inputTokens, outputTokens, durationMs, exitCode, promptFor Claude tasks: details of the Claude session

get_task_log ​

Read the actual output (stdout/stderr) of a specific task execution. Use a taskLog path from a get_workflow_log log entry (or from one of its subStatus entries). Supports tail reading (negative offsets) to quickly diagnose failures.

ParameterTypeRequiredDescription
taskLogstringYesTask log file path from get_workflow_log
startOffsetintegerNoByte offset. Positive = from start, negative = from end (default: -10000)
limitintegerNoMax bytes to return (default: 10000)

Usage

Default behavior is tail mode: reads last 10KB (most failures appear at end). Negative offsets count from end: -10000 means "10000 bytes from end". Task logs can be very large (hundreds of MB), so read them in chunks by adjusting startOffset. Always retrieve the taskLog path first from get_workflow_log.

Example Request (Tail Mode - Default)

json
{
  "taskLog": "/opt/situate/logs/workflows/wf_l665ao2e/task_4519.log"
}

Example Request (Read from Beginning)

json
{
  "taskLog": "/opt/situate/logs/workflows/wf_l665ao2e/task_4519.log",
  "startOffset": 0,
  "limit": 10000
}

Example Response

json
{
  "taskLog": "/opt/situate/logs/workflows/wf_l665ao2e/task_4519.log",
  "size": 52428800,
  "startOffset": 52418800,
  "limit": 10000,
  "bytesRead": 10000,
  "data": "...actual task output text..."
}

cancel_instance ​

Cancel a running workflow instance. The instance transitions to "canceling" state and then to "canceled" once all tasks have stopped.

ParameterTypeRequiredDescription
instanceIdstringYesInstance GUID to cancel

Example Request

json
{
  "instanceId": "btvgbnms-h642-11f1-9fd1-cf9f57209bde"
}

pause_instance ​

Pause a running workflow instance. The instance will pause execution after the current task completes. Use continue_instance to resume execution.

ParameterTypeRequiredDescription
instanceIdstringYesInstance GUID to pause

Example Request

json
{
  "instanceId": "btvgbnms-h642-11f1-9fd1-cf9f57209bde"
}

continue_instance ​

Continue (resume) a paused workflow instance. The instance will resume execution from where it was paused.

ParameterTypeRequiredDescription
instanceIdstringYesInstance GUID to continue

Example Request

json
{
  "instanceId": "btvgbnms-h642-11f1-9fd1-cf9f57209bde"
}

confirm_instance ​

Confirm (acknowledge) one or more completed workflow instances. Removes instances from the unconfirmed queue after review. Confirmation is an operator acknowledgment system - instances remain in the queue until confirmed, either manually or automatically based on workflow policy.

ParameterTypeRequiredDescription
instanceIdsarrayYesArray of instance IDs to confirm

Confirmation System

Confirmation is about operator review and acknowledgment, not cleanup. Instances remain in the queue until confirmed. Some workflows are configured to never auto-confirm, requiring manual review even on success. Logs are retained based on retention policy (daysToKeep), separate from confirmation.

Example Request (Single Instance)

json
{
  "instanceIds": ["njvjpgne-h667-11f1-a453-23f5ab9031b2"]
}

Example Request (Multiple Instances)

json
{
  "instanceIds": [
    "njvjpgne-h667-11f1-a453-23f5ab9031b2",
    "eg2ap6dc-h673-11f1-a4e1-678de1b4a88d",
    "tknf6838-h675-11f1-b48e-835e059e8825"
  ]
}

Example Response

json
{
  "confirmedCount": 3,
  "confirmed": [
    "njvjpgne-h667-11f1-a453-23f5ab9031b2",
    "eg2ap6dc-h673-11f1-a4e1-678de1b4a88d",
    "tknf6838-h675-11f1-b48e-835e059e8825"
  ],
  "message": "Confirmed 3 of 3 instance(s)"
}

History / Audit Tools ​

search_audit ​

Search the audit log for historical events. Use this to find confirmed workflow instances, workflow changes (enable/disable/modify), user actions, and system events. This is the only way to find instances that have been confirmed and removed from the active queue.

Results can be filtered only by entry class and time range. To find events by a particular user or on a particular object, search the relevant entry class and time range, then filter the returned entries on their user or objectId fields.

ParameterTypeRequiredDescription
entryClassstringNoFilter by entry type (see Entry Classes below). Leave empty for all types
timeRangestringNoTime range: "last_1h", "last_4h", "last_8h", "last_12h", "last_24h" (default), "last_48h", "last_7d", "last_30d", "last_60d", "today", "yesterday", "custom"
startDateintegerNoStart timestamp in milliseconds (for custom time range)
endDateintegerNoEnd timestamp in milliseconds (for custom time range)
limitintegerNoMaximum results (default: 50, max: 200)
ascendingbooleanNoSort order: true for oldest first, false for newest first (default: false)

More Results

At most limit entries (200 at most) are returned. There is no offset parameter; when hasMore is true, narrow the search with a shorter timeRange, or use timeRange: "custom" with startDate and endDate to request the next window of time.

Entry Classes

Entry ClassDescription
WorkflowInstanceWorkflow runs: entries are written when an instance starts, finishes, and is confirmed
WorkflowWorkflow definition changes (enable/disable/modify/approve)
WorkflowGroupGroup changes
UserUser changes
AssetAsset changes
AssetGroupAsset group changes
CalendarCalendar changes
SystemSystem events

WorkflowInstance Values Array

For entryClass=WorkflowInstance, the values array begins with:

  • values[0] - Workflow name
  • values[1] - Workflow ID
  • values[2] - Instance ID
  • values[3] - Status recorded by the entry: RUNNING, COMPLETE, FAILED, CANCELED, CONFIRMED, or NOT STARTED
  • values[4] - Trigger name
  • values[5] - Run by (user who triggered)

Further values (such as approval details) may follow.

Example Request

json
{
  "entryClass": "WorkflowInstance",
  "timeRange": "last_7d",
  "limit": 50
}

Example Response

json
{
  "entries": [
    {
      "id": "audit-entry-guid",
      "date": 1773754520553,
      "entryClass": "WorkflowInstance",
      "user": "dave",
      "description": "Workflow completed successfully",
      "level": "INFO",
      "objectId": "e7l87cga-2201-11f1-bb1f-17807bff4750",
      "displayName": "Hello_World",
      "values": ["Hello_World", "e7l87cga-2201-11f1-bb1f-17807bff4750", "i473v9u4-2206-11f1-9681-03b19c28f181", "COMPLETE", "Trigger_1", "dave"]
    }
  ],
  "count": 1,
  "hasMore": false,
  "timeRange": "last_7d"
}

When to Use search_audit

  1. Instance not found in list_instances - The instance was likely confirmed. Use search_audit(entryClass: "WorkflowInstance") to find it.
  2. Investigating workflow changes - Use search_audit(entryClass: "Workflow") to see who modified, enabled, or disabled a workflow.
  3. Compliance/auditing - Review recent actions by entry class and time range, then filter the results by their user or objectId fields.
  4. Historical analysis - Find patterns in workflow executions over time.

Workflow Configuration Tools ​

submit_workflow ​

Submit a workflow definition (XML format) to the workflow manager. Returns validation results and the workflow ID if successful. Submitted workflows require approval before execution.

ParameterTypeRequiredDescription
xmlstringYesWorkflow definition in XML format
preserveAclbooleanNoPreserve the ACL from the workflow XML (default: false)

Example Request

json
{
  "xml": "<workflow>...</workflow>",
  "preserveAcl": false
}

approve_workflow ​

Approve one or more submitted workflows. Each workflow may require approval for multiple resources (servers, users, privileges, etc.). Different users can approve different requirements. Returns any remaining approval requirements.

ParameterTypeRequiredDescription
workflowIdsarrayYesArray of workflow IDs to approve
enablebooleanNoEnable the workflow after approval (default: true)

Example Request

json
{
  "workflowIds": ["cicdshgo-hm74-11v1-b48e-a326e51d3e7d"],
  "enable": true
}

set_trigger_enabled ​

Enable or disable one or more triggers on a workflow. Triggers can be individually enabled/disabled to control when workflows can be started. Use '*' as triggerName to enable/disable all triggers.

ParameterTypeRequiredDescription
workflowIdstringYesWorkflow ID (GUID)
triggerNamestringYesName of trigger to enable/disable, or '*' for all triggers
enabledbooleanYestrue to enable, false to disable

Example Request (Single Trigger)

json
{
  "workflowId": "cicdshgo-hm74-11v1-b48e-a326e51d3e7d",
  "triggerName": "Claude",
  "enabled": false
}

Example Request (All Triggers)

json
{
  "workflowId": "cicdshgo-hm74-11v1-b48e-a326e51d3e7d",
  "triggerName": "*",
  "enabled": true
}

set_admin_hold ​

Set or clear administrative hold bits on one or more workflows. Admin holds prevent workflows from executing even if enabled and approved. Useful for maintenance or troubleshooting.

ParameterTypeRequiredDescription
workflowIdsarrayYesArray of workflow IDs to modify
setbooleanYestrue to set hold, false to clear hold
maskBitsintegerNoBit mask value to set or clear (default: 1)
submittedbooleanNotrue if workflows are in submitted state, false if approved (default: false)

Example Request

json
{
  "workflowIds": [
    "cicdshgo-hm74-11v1-b48e-a326e51d3e7d",
    "lksbtuuq-h667-hhf1-a293-df1c8730abf0"
  ],
  "set": true,
  "maskBits": 1
}

Application Lifecycle Tools ​

list_applications ​

List application workflows (lifecycle-managed components). Applications are different from standard workflows - they are started/stopped rather than triggered. Filter by containing system, group, or current status.

ParameterTypeRequiredDescription
systemIdstringNoFilter by containing system ID
groupIdstringNoFilter by group ID
statusstringNoFilter by status: "running", "stopped", "failed", "all" (default: "all")
limitintegerNoMaximum results to return (default: 50)

Example Request

json
{
  "status": "running",
  "limit": 20
}

start_application ​

Start an application component. Only works on application workflows (not standard workflows). The application transitions from STOPPED to RUNNING state.

ParameterTypeRequiredDescription
applicationIdstringYesApplication workflow GUID to start

Example Request

json
{
  "applicationId": "app-workflow-guid"
}

stop_application ​

Stop a running application component. Only works on application workflows (not standard workflows). The application transitions from RUNNING to STOPPED state.

ParameterTypeRequiredDescription
applicationIdstringYesApplication workflow GUID to stop

Example Request

json
{
  "applicationId": "app-workflow-guid"
}

get_application_status ​

Get the current lifecycle status of an application. Returns sysd state (running, stopped, failed), expected state, and other status details.

ParameterTypeRequiredDescription
applicationIdstringYesApplication workflow GUID

Example Request

json
{
  "applicationId": "app-workflow-guid"
}

get_system_status ​

Get the status of all application components in a system workflow. Returns each component's state (running, stopped, failed) and a summary count. Use this to understand the health of an application stack before deciding whether to restart the entire system or individual components.

ParameterTypeRequiredDescription
systemIdstringYesSystem workflow GUID

Example Request

json
{
  "systemId": "system-workflow-guid"
}

Example Response

json
{
  "systemId": "system-workflow-guid",
  "systemName": "Order_Stack",
  "components": [
    {
      "id": "app-workflow-guid",
      "name": "Order_Service",
      "templateId": "template-workflow-guid",
      "sysdState": 1,
      "status": "running",
      "enabled": true,
      "expectedState": "running"
    }
  ],
  "summary": {
    "total": 1,
    "running": 1,
    "stopped": 0,
    "failed": 0
  }
}

Implementation Notes ​

Technical Details

  • Protocol: JSON-RPC 2.0 over HTTPS
  • Authentication: X-API-Key header (required)
  • Response Format: JSON
  • Timeout: 30 seconds for workflow log retrieval, audit searches, and confirmations; 10 seconds for other operations
  • Instance Retrieval: list_instances and get_instance_status search the active queue (running instances and finished instances that have not been confirmed)
  • Pagination: get_workflow_log pages through log entries with startIndex and limit; get_task_log reads byte ranges with startOffset and limit. The list tools (list_workflows, list_instances, list_applications) and search_audit accept only limit and return the first matching results, with no offset. search_audit reports hasMore when more entries match.

Error Handling ​

Error CodeMeaningDescription
-32001Not FoundInstance, workflow, or resource not found
-32002Permission DeniedInsufficient permissions for operation
-32600Invalid RequestMalformed JSON-RPC request
-32601Method Not FoundUnknown JSON-RPC method
-32602Invalid ParamsMissing or invalid parameters
-32603Internal ErrorServer-side error during execution, or the request is not authenticated ("Not authorized")

Best Practices ​

  • Page Through Logs: For large workflow logs, use startIndex and limit with get_workflow_log; for large task logs, use startOffset and limit with get_task_log
  • Filter List Results: The list tools and search_audit have no offset, so use their filters (and, for search_audit, a narrower time range) to keep results under limit
  • Confirm Instances: Regularly confirm completed instances to maintain queue hygiene
  • Check Logs: Use get_workflow_log to diagnose failures and understand workflow execution
  • Manage Triggers: Disable triggers during maintenance to prevent unwanted executions
  • Admin Holds: Use admin holds for coordinated changes across multiple workflows
  • Monitor Status: Use get_instance_status to track long-running workflows

Choosing the Right Trigger (AI Agents)

When selecting which trigger to use for a workflow:

  1. Call list_triggers to get available triggers with their descriptions and parameters
  2. Read the trigger description - it explains when to use that trigger (e.g., "Use this trigger for scheduled runs" vs "Use this trigger for on-demand reprocessing")
  3. Read parameter descriptions to understand what values are expected (e.g., "Processing date in ISO format")
  4. Use list_workflows to read the workflow description for overall context about what the workflow does

These description fields are specifically designed to help AI agents understand workflow intent and select appropriate triggers without trial-and-error.

Workload Automation and Orchestration