Appearance
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
- Workflow Discovery - Browse and search workflows and groups
- Workflow Execution - Start and control workflow execution
- Instance Management - Monitor and manage active workflow instances
- History / Audit - Search historical events and confirmed instances
- Workflow Configuration - Submit, approve, and configure workflows
- Application Lifecycle - Manage application workflows
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:
| Tool | Running | Completed | Confirmed |
|---|---|---|---|
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| parentId | string | No | Parent 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| groupId | string | No | Filter by group ID |
| name | string | No | Filter by name (partial match) |
| queue | string | No | Filter by queue name |
| state | string | No | Workflow approval state: "submitted" or "approved" (default: "approved") |
| limit | integer | No | Maximum 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| workflowId | string | Conditional | Workflow GUID (use this OR groupId+name) |
| groupId | string | Conditional | Group ID (use with name) |
| name | string | Conditional | Workflow name (use with groupId) |
| state | string | No | Workflow 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| workflowId | string | Yes | Workflow 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
| Field | Type | Description |
|---|---|---|
| triggers[].name | string | Trigger name (required for start_workflow) |
| triggers[].description | string | Optional description explaining when to use this trigger |
| triggers[].parameters | array | List of parameter objects |
| triggers[].parameters[].name | string | Parameter name (use as key in start_workflow parameters) |
| triggers[].parameters[].description | string | Optional 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| workflowId | string | Conditional | Workflow GUID (use this OR groupId+name) |
| groupId | string | Conditional | Group ID (use with name) |
| name | string | Conditional | Workflow name (use with groupId) |
| triggerName | string | Yes | Name of the trigger to execute |
| parameters | object | No | Key-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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| workflowId | string | No | Filter by workflow ID |
| status | string | No | Filter by status: "running", "succeeded", "failed", "canceled", "all" (default: "all"). "failed" includes instances that failed because the server restarted. |
| queue | string | No | Filter by queue name |
| limit | integer | No | Maximum results (default: 50) |
Response Fields
| Field | Description |
|---|---|
| instances[].instanceId | Instance GUID |
| instances[].workflowName | Workflow name |
| instances[].workflowId | Workflow GUID |
| instances[].status | "running", "succeeded", "failed", "canceled", "canceling", "waiting", or "unknown" |
| instances[].startTime | Time the instance started (milliseconds since epoch) |
| instances[].endTime | Time the instance finished (milliseconds since epoch) |
| instances[].runBy | User the instance ran as |
| instances[].triggerName | Trigger 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_status | list_instances | Meaning |
|---|---|---|
| parent | workflowId | Workflow GUID |
| name | workflowName | Workflow name |
| state (number) and statusString | status | Instance status |
| lastRun | startTime | Time the instance started (ms) |
| nextRun | endTime | Time the instance finished (ms) |
| paused | true if the instance is paused |
| Parameter | Type | Required | Description |
|---|---|---|---|
| instanceId | string | Yes | Instance 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| instanceId | string | Yes | Instance GUID |
| workflowId | string | Conditional | Workflow 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. |
| startIndex | integer | No | Index of the first entry to return (default: 0). Negative values count from the end: -100 returns the last 100 entries. |
| limit | integer | No | Maximum 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
| Field | Description |
|---|---|
| index | Position of the entry in the workflow log |
| task | Task or trigger name |
| status | INITIAL, RUNNING, WAITING, SUCCEEDED, NOTICE, FAILED, CANCELED, WARN, CANCELING, or SKIPPED |
| statusCode | Numeric status code |
| statusType | Kind of status record (for example WorkflowStatus, ManualTriggerStatus, TaskStatus) |
| taskLog | Path of the task's output log, for use with get_task_log (present only when the task wrote one) |
| message | Status message, if any |
| subStatus | For 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) |
| command | For remote command tasks: the command that was run |
| model, sessionId, inputTokens, outputTokens, durationMs, exitCode, prompt | For 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| taskLog | string | Yes | Task log file path from get_workflow_log |
| startOffset | integer | No | Byte offset. Positive = from start, negative = from end (default: -10000) |
| limit | integer | No | Max 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| instanceId | string | Yes | Instance 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| instanceId | string | Yes | Instance 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| instanceId | string | Yes | Instance 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| instanceIds | array | Yes | Array 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| entryClass | string | No | Filter by entry type (see Entry Classes below). Leave empty for all types |
| timeRange | string | No | Time range: "last_1h", "last_4h", "last_8h", "last_12h", "last_24h" (default), "last_48h", "last_7d", "last_30d", "last_60d", "today", "yesterday", "custom" |
| startDate | integer | No | Start timestamp in milliseconds (for custom time range) |
| endDate | integer | No | End timestamp in milliseconds (for custom time range) |
| limit | integer | No | Maximum results (default: 50, max: 200) |
| ascending | boolean | No | Sort 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 Class | Description |
|---|---|
| WorkflowInstance | Workflow runs: entries are written when an instance starts, finishes, and is confirmed |
| Workflow | Workflow definition changes (enable/disable/modify/approve) |
| WorkflowGroup | Group changes |
| User | User changes |
| Asset | Asset changes |
| AssetGroup | Asset group changes |
| Calendar | Calendar changes |
| System | System events |
WorkflowInstance Values Array
For entryClass=WorkflowInstance, the values array begins with:
values[0]- Workflow namevalues[1]- Workflow IDvalues[2]- Instance IDvalues[3]- Status recorded by the entry: RUNNING, COMPLETE, FAILED, CANCELED, CONFIRMED, or NOT STARTEDvalues[4]- Trigger namevalues[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
- Instance not found in list_instances - The instance was likely confirmed. Use
search_audit(entryClass: "WorkflowInstance")to find it. - Investigating workflow changes - Use
search_audit(entryClass: "Workflow")to see who modified, enabled, or disabled a workflow. - Compliance/auditing - Review recent actions by entry class and time range, then filter the results by their
userorobjectIdfields. - 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| xml | string | Yes | Workflow definition in XML format |
| preserveAcl | boolean | No | Preserve 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| workflowIds | array | Yes | Array of workflow IDs to approve |
| enable | boolean | No | Enable 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| workflowId | string | Yes | Workflow ID (GUID) |
| triggerName | string | Yes | Name of trigger to enable/disable, or '*' for all triggers |
| enabled | boolean | Yes | true 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| workflowIds | array | Yes | Array of workflow IDs to modify |
| set | boolean | Yes | true to set hold, false to clear hold |
| maskBits | integer | No | Bit mask value to set or clear (default: 1) |
| submitted | boolean | No | true 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| systemId | string | No | Filter by containing system ID |
| groupId | string | No | Filter by group ID |
| status | string | No | Filter by status: "running", "stopped", "failed", "all" (default: "all") |
| limit | integer | No | Maximum 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| applicationId | string | Yes | Application 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| applicationId | string | Yes | Application 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| applicationId | string | Yes | Application 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| systemId | string | Yes | System 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_instancesandget_instance_statussearch the active queue (running instances and finished instances that have not been confirmed) - Pagination:
get_workflow_logpages through log entries withstartIndexandlimit;get_task_logreads byte ranges withstartOffsetandlimit. The list tools (list_workflows,list_instances,list_applications) andsearch_auditaccept onlylimitand return the first matching results, with no offset.search_auditreportshasMorewhen more entries match.
Error Handling
| Error Code | Meaning | Description |
|---|---|---|
| -32001 | Not Found | Instance, workflow, or resource not found |
| -32002 | Permission Denied | Insufficient permissions for operation |
| -32600 | Invalid Request | Malformed JSON-RPC request |
| -32601 | Method Not Found | Unknown JSON-RPC method |
| -32602 | Invalid Params | Missing or invalid parameters |
| -32603 | Internal Error | Server-side error during execution, or the request is not authenticated ("Not authorized") |
Best Practices
- Page Through Logs: For large workflow logs, use
startIndexandlimitwith get_workflow_log; for large task logs, usestartOffsetandlimitwith 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:
- Call
list_triggersto get available triggers with their descriptions and parameters - 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")
- Read parameter descriptions to understand what values are expected (e.g., "Processing date in ISO format")
- Use
list_workflowsto 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.