Tool: list_playbook_instances
Lists all execution instances of playbooks for a given case or alert.
Retrieves a historical list of all playbooks that have been run on a specific case and alert, showing their status and outcomes. This is useful for understanding what automated actions have already been taken, for auditing purposes, or for debugging playbook executions.
Workflow Integration: - Used to display the execution history of playbooks in a UI for an analyst to review. - Enables automated systems to verify if a certain playbook has already been executed on a case, preventing duplicate runs. - Provides crucial data for auditing security operations and for troubleshooting failing or unexpectedly behaving playbooks.
Use Cases: - A security analyst reviews the list of run playbooks on a case to get up to speed on the investigation. - A SOAR engineer checks the execution history of a playbook for a particular alert to diagnose a failure. - An automated rule queries the playbook instances to decide whether to escalate a case or run another playbook.
Args: project_id (str): Google Cloud project ID (required). customer_id (str): Chronicle customer ID (required). region (str): Chronicle region (e.g., "us", "europe") (required). case_id (int64): The identifier of the case for which to list playbook instances (required). alert_group_identifier (str): The alert group identifier to filter playbook instances. This is a unique string identifier associated with an alert, typically in the format 'Alert Rule Name
Returns: A response object containing a list of playbook instance cards. Each card includes details such as the playbook's name, its execution status (e.g., 'COMPLETED', 'IN_PROGRESS', 'FAILED'), the playbook definition identifier, a description, and the run count. Returns an error message if the case or alert is not found or the request is invalid.
Example Usage: # List playbook instances for a specific alert group within a case list_playbook_instances(project_id='123', region='us', customer_id='abc', case_id=12345, alert_group_identifier='alert-group-xyz-789')
Next Steps (using MCP-enabled tools): - Use 'get_playbook_instance_details' to retrieve the full execution log and step-by-step results for a specific playbook run. - Use 'list_playbooks' to discover other playbooks that are available to be run.
The following sample demonstrate how to use curl to invoke the list_playbook_instances MCP tool.
| Curl Request |
|---|
curl --location 'https://chronicle.googleapis.com/mcp' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "list_playbook_instances", "arguments": { // provide these details according to the tool's MCP specification } }, "jsonrpc": "2.0", "id": 1 }' |
Input Schema
Request message for ListPlaybookInstances.
ListPlaybookInstancesRequest
| JSON representation |
|---|
{ "projectId": string, "customerId": string, "region": string, "caseId": string, "alertGroupIdentifier": string } |
| Fields | |
|---|---|
projectId |
Project ID of the customer. |
customerId |
Customer ID of the customer. |
region |
Region of the customer. |
caseId |
Case ID for which to list playbook instances. |
alertGroupIdentifier |
Alert identifier to filter playbook instances. |
Output Schema
LegacyPlaybookGetWorkflowInstancesCardsResponse is a response for getting workflow instances cards.
LegacyPlaybookGetWorkflowInstancesCardsResponse
| JSON representation |
|---|
{
"payload": [
{
object ( |
| Fields | |
|---|---|
payload[] |
Optional. The workflow instances cards. |
ApiWorkflowInstanceCardDataModel
| JSON representation |
|---|
{ "status": enum ( |
| Fields | |
|---|---|
status |
Required. Status is the status of the workflow instance. |
name |
Required. Name is the name of the workflow instance. |
definitionIdentifier |
Required. DefinitionIdentifier is the identifier of the workflow definition. |
description |
Optional. Description is the description of the workflow instance. |
positionInQueue |
Required. PositionInQueue is the position of the workflow instance in the queue. |
runCount |
Required. RunCount is the number of times the workflow instance has been run. |
creationSource |
Optional. CreationSource is the source of the workflow. |
Union field
|
|
originalWorkflowDefinitionIdentifier |
Optional. OriginalWorkflowDefinitionIdentifier is the original identifier of the workflow definition. |
Union field
|
|
isDebugMode |
Optional. IsDebugMode indicates if debug mode is enabled for the workflow instance. |
Tool Annotations
Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ❌