The CAI Job Management server lets AI agents monitor, control, and troubleshoot running Application Integration process instances. Use it to find out what is running, why a run failed, and how to recover it, without opening the Application Integration console. Agents can inspect state, logs, and alarms, run published processes, and suspend, resume, retry, terminate, or delete instances.
Use cases
Key use cases for the CAI Job Management MCP server:
•Monitor the state, detail, and timing of process instances in your organization.
•Diagnose failed runs by reviewing logs, log events, and alarms.
•Recover faulted process instances without restarting the process.
•Clean up stale process instances in bulk.
•Run a published process after reviewing the input that it expects.
•Watch a process instance until it completes and react to faults.
Key capabilities
Perform the following tasks with the MCP server:
•Monitor the state, detail, and timing of process instances in your organization.
•Diagnose failed runs by reviewing condensed and full process logs, log events, alarms, and attachments.
•Recover faulted process instances by retrying or skipping the faulted activity.
•Suspend, resume, complete, or terminate process instances individually or in bulk.
•Delete stale process instances by id or by filter.
•Run a published process, with or without sign-in, after reviewing the OpenAPI specification of its input.
Prerequisites
Verify the following prerequisites before you start:
•Your organization has access to Application Integration.
•A valid session is open.
Server URL
Use the following server URL to access the CAI Job Management MCP server:
Use the following sample prompts with the CAI Job Management MCP server:
•List the faulted process instances in my organization.
•Show the current state of process 623402767129513984.
•Why did process 623402767129513984 fail? Show me the log.
•Retry the faulted activity in process 623402767129513984.
•Suspend process 623402767129513984 and resume it later.
•How many process instances of GreetProcess are running?
•Delete all faulted instances of GreetProcess.
•What input does GreetProcess expect? Run it with the name Alex.
•Watch process 623402767129513984 until it completes.
Available tools
The CAI Job Management MCP server provides the following tools:
complete_process
Force-completes a process instance immediately without running its remaining activities. This action cannot be undone, so confirm with the user first.
Parameters:
id. Process instance ID, from list_processes. Required.
location. BPEL location path of the activity currently in progress. For example, /process/sequence/wait. Required.
count_process_log_events
Returns the number of process log events that match the specified filters, without returning the events. The response is a plain-text integer.
Parameters:
- endDate. Filters to events logged at or before this date-time.
- level. Filters by log event severity level: INFO, WARNING, ERROR, or FAULT.
- processId. Filters to log events belonging to a specific process instance.
- startDate. Filters to events logged at or after this date-time.
count_processes
Returns the number of process instances that match all specified filters. All filters are optional and combine with AND. The response is a plain-text integer.
Parameters:
- completedFrom. Start of the window for when the instance finished. Includes instances that finished at or after this time.
- completedOn. Matches instances that finished on this calendar day.
- completedTo. End of the window for when the instance finished. Includes instances that finished at or before this time.
- createdFrom. Start of the window for when the instance was started. Includes instances started at or after this time.
- createdOn. Matches instances started on this calendar day.
- createdTo. End of the window for when the instance was started. Includes instances started at or before this time.
- processGroup. Process group to match, ignoring case. For example, RT.User for processes you built.
- processName. Name of the process definition without a namespace.
- processNameNamespace. Namespace that qualifies processName (for example, urn:screenflow:process:Process2-1).
- processState. Process state to match: RUNNING, COMPLETED, SUSPENDED, COMPENSATABLE, FAULTED, or TERMINATED.
delete_process
Deletes a single completed, faulted, or terminated process instance and its stored runtime data. This action is irreversible.
Parameter: id. Process instance ID, from list_processes. Required.
delete_processes_by_filter
Deletes every process instance that matches a filter on name, group, or state. This action is irreversible, and an empty filter deletes all instances. Always supply a scoping field.
Parameters:
body. Filter that scopes the deletion, with fields processName (object with value and namespace), processGroup, processState (array of RUNNING, SUSPENDED, or FAULTED), created, completed, and advancedQuery. Supply at least one of processName, processGroup, processState, or advancedQuery. Required.
delete_processes_by_filter
Deletes every process instance that matches a filter on name, group, or state. This action is irreversible, and an empty filter deletes all instances. Always supply a scoping field.
Parameters: body. Filter that scopes the deletion, with fields processName (object with value and namespace), processGroup, processState (array of RUNNING, SUSPENDED, or FAULTED), created, completed, and advancedQuery. Supply at least one of processName, processGroup, processState, or advancedQuery. Required.
delete_processes_by_ids
Deletes multiple process instances in one call from an explicit list of process IDs. This action is irreversible.
Parameter: body. Object with processId, an array of 1 to 200 process instance IDs. Required.
get_anonymous_process_openapi_spec
Returns the OpenAPI 3.0 specification of a published process that allows anonymous access. Use this tool to determine the input to pass to run_anonymous_process. Fails with a 403 error if the process requires sign-in.
Parameters:
- openApi. Selects the OpenAPI document.
- orgId. Organization ID that owns the process, as it appears in the process anonymous endpoint URL. Required.
- processName. Name of the published anonymous process, as returned by search_deployed_processes. Required.
get_deployment_plan
Retrieves the compiled deployment plan of a deployed process definition, which is the version that services new and running instances. The response is the compiled BPEL source.
Parameter: planId. Deployment plan ID, from the deployed process details. Required.
get_process_attachment
Retrieves a binary or document attachment that the process instance produced or consumed during execution, as a downloadable file.
Parameters:
- attachmentName. Name of the attachment to retrieve, if the process has more than one.
- id. Process instance ID, from list_processes. Required.
get_process_coordinator
Retrieves BPEL coordination details for a process instance that acts as a coordinator, including the participant instances it coordinates. The result is empty for non-coordinating instances.
Parameter: processId. Process instance ID acting as coordinator.
get_process_detail
Retrieves full details for a single process instance, including state, state reason, name, namespace, and timing.
Parameter: processId. Process instance ID, from list_processes. Required.
get_process_full_log
Retrieves the full, verbose execution log for a process instance as a downloadable log file. Use get_process_log first for a summary.
Parameter: id. Process instance ID, from list_processes. Required.
get_process_log
Retrieves the condensed execution log for a single process instance as a single log string.
Parameter: id. Process instance ID, from list_processes. Required.
get_process_openapi_spec
Returns the OpenAPI 3.0 specification of a published process that requires sign-in. Use this tool to determine the input to pass to run_process. Fails with a 403 error if the process is anonymous or if you do not have access to it.
Parameters:
- openApi. Selects the OpenAPI document.
- processName. Name of the published process, as returned by search_deployed_processes. Required.
get_process_participant
Retrieves BPEL coordination details for a process instance that acts as a participant, including the coordinator it reports to. The result is empty for non-coordinated instances.
Parameter: processId. Process instance ID acting as participant. Required.
get_process_state
Retrieves the current lifecycle state of a process instance, such as RUNNING, SUSPENDED, FAULTED, or COMPLETED, along with the state reason.
Parameter: id. Process instance ID, from list_processes. Required.
list_alarms
Lists the alarm queue, which holds process instances waiting on a scheduled deadline. You can filter by process or deadline window.
Parameters:
- deadlineFrom. Filters to alarms with a deadline at or after this date-time.
- deadlineOn. Filters to alarms whose deadline falls on this exact date-time.
- deadlineTo. Filters to alarms with a deadline at or before this date-time.
- hideSystem. Excludes system-owned alarms from the results.
- listStart. Zero-based offset into the result set, for paging.
- maxReturn. Maximum number of alarms to return.
- processGroup. Filters by process group.
- processId. Filters to alarms belonging to a specific process instance.
- processName. Filters by process definition name.
- processNameNamespace. Namespace qualifying processName.
list_message_receivers
Lists the message receiver queue, which holds instances waiting to receive a correlated message on a partner link. You can filter by process or operation.
Parameters:
- listStart. Zero-based offset into the result set, for paging.
- maxReturn. Maximum number of receivers to return.
- operation. Filters by the WSDL operation name being awaited.
- partnerLinkName. Filters by the BPEL partner link name waiting to receive.
- portTypeName. Filters by the WSDL port type name.
- portTypeNamespace. Namespace qualifying portTypeName.
- processId. Filters to receivers belonging to a specific process instance.
list_process_log_events
Searches individual process log events by process, severity, or date range so you can find specific errors without retrieving an entire log.
Parameters:
- endDate. Filters to events logged at or before this date-time.
- level. Filters by log event severity level: INFO, WARNING, ERROR, or FAULT.
- listStart. Zero-based offset into the result set, for paging.
- maxReturn. Maximum number of log events to return.
- processId. Filters to log events belonging to a specific process instance.
- startDate. Filters to events logged at or after this date-time.
list_processes
Lists process instances (individual runs) in your organization that match all specified filters. Results are paged, with 20 returned by default. Use this tool to find a process instance ID.
Parameters:
- advancedQuery. Advanced filter expression combining process property comparisons, evaluated in addition to any other filters.
- completedFrom. Start of the window for when the instance finished. Includes instances that finished at or after this time.
- completedOn. Matches instances that finished on this calendar day.
- completedTo. End of the window for when the instance finished. Includes instances that finished at or before this time.
- createdFrom. Start of the window for when the instance was started. Includes instances started at or after this time.
- createdOn. Matches instances started on this calendar day.
- createdTo. End of the window for when the instance was started. Includes instances started at or before this time.
- listStart. Zero-based offset into the result set, for paging.
- maxReturn. Maximum number of process instances to return.
- processGroup. Process group to match, ignoring case. For example, RT.User for processes you built.
- processId. Exact process instance ID (run ID) to fetch.
- processName. Name of the process definition (such as Process2-1) without a namespace.
- processNameNamespace. Namespace that qualifies processName. For example, urn:screenflow:process:Process2-1.
- processState. Process state to match: RUNNING, COMPLETED, SUSPENDED, COMPENSATABLE, FAULTED, or TERMINATED.
resume_process
Resumes a suspended process instance so that it continues from where it paused. To recover a faulted instance, use a retry or fault tool instead.
Parameter: id. Process instance ID, from list_processes. Required.
resume_process_with_fault_retry
Resumes a faulted process instance by retrying the faulted activity with its original input. This changes the lifecycle state of the instance.
Parameter: id. Process instance ID, from list_processes. Required.
resume_process_with_fault_skip
Resumes a faulted process instance by skipping the faulted activity and continuing with the next one. The work of the skipped activity is not performed.
Parameter: id. Process instance ID, from list_processes. Required.
retry_process
Resolves the currently faulted activity of a process instance by retrying it, without changing the lifecycle state of the instance.
Parameter: id. Process instance ID to retry, from list_processes. Required.
run_anonymous_process
Starts a new run of a published process that allows anonymous access. Pass the input as a JSON body, or omit the body if the process takes no input. Each call starts a new instance.
Parameters:
- body. Free-form JSON input for the process, shaped like the request of the process. Omit for a process that takes no input.
- orgId. ID of the organization that owns the process. Required.
- processName. Name of the published anonymous process to run, as returned by search_deployed_processes. Required.
run_process
Starts a new run of a published process that requires sign-in, as the current user. Pass the input as a JSON body, or omit the body if the process takes no input. Each call starts a new instance.
Parameters:
- body. Free-form JSON input for the process, shaped like the request of the process. Omit for a process that takes no input.
- processName. Name of the published process to run, as returned by search_deployed_processes. Required.
step_process_activity
Executes the activity at a given BPEL location in a debug-suspended process instance to step the instance forward.
Parameters:
- id. Process instance ID, from list_processes. Required.
- location. BPEL location path of the activity to execute. For example, /process/sequence/wait. Required.
suspend_process
Pauses a running process instance and halts further activity execution until the instance is resumed.
Parameter: id. Process instance ID, from list_processes. Required.
terminate_process
Cancels a single running or suspended process instance immediately. This action is irreversible.
Parameters:
- id. Process instance ID to terminate, from list_processes. Required.
- isManual. Indicates whether this termination was manually requested by a user, as opposed to a system-initiated termination.
terminate_processes
Cancels multiple process instances in one call from an explicit list of process IDs. This action is irreversible.
Parameter: body. Object with processId, an array of 1 to 200 process instance IDs. Required.
Sample request schemas
The following schemas show how you can define a request for each tool on the The CAI Asset Management MCP server:
Download the CAI Job Management skills that you can use with this MCP server.
The file includes the following skills:
•run_a_cai_process. Runs a published process by its API name after checking which input it expects, using the sign-in or anonymous endpoints as appropriate.
•watch_to_completion. Polls a running process instance until it finishes, triages a fault, and, only with explicit confirmation, retries or skips the faulted activity.