list_workflow_runs
Retrieve and filter security workflow execution records in Kubernetes and cloud environments to monitor security operations and track runtime data.
Instructions
List workflow runs with optional filtering by workflow ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | ID of the workflow to list runs for |
Implementation Reference
- src/operations/workflows.ts:32-41 (handler)The core handler function that executes the tool: takes RadSecurityClient and workflowId, makes a GET request to the API endpoint for listing workflow runs, and returns the response.export async function listWorkflowRuns( client: RadSecurityClient, workflowId: string ): Promise<any> { const response = await client.makeRequest( `/accounts/${client.getAccountId()}/workflows/${workflowId}/runs` ); return response; }
- src/operations/workflows.ts:4-6 (schema)Zod schema defining the input parameters for the tool: requires a workflow_id string.export const ListWorkflowRunsSchema = z.object({ workflow_id: z.string().describe("ID of the workflow to list runs for"), });
- src/index.ts:519-523 (registration)Registration of the tool in the ListToolsRequest handler: specifies the tool name, description, and references the input schema.name: "list_workflow_runs", description: "List workflow runs with optional filtering by workflow ID", inputSchema: zodToJsonSchema(workflows.ListWorkflowRunsSchema), },
- src/index.ts:1409-1422 (registration)Dispatch logic in the CallToolRequest handler: validates input with schema, invokes the handler function with client and parsed workflow_id, and returns JSON-formatted response.case "list_workflow_runs": { const args = workflows.ListWorkflowRunsSchema.parse( request.params.arguments ); const response = await workflows.listWorkflowRuns( client, args.workflow_id ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2) }, ], }; }