get_workflow_run
Retrieve detailed information about a specific security workflow run to analyze execution status, results, and security insights in Kubernetes and cloud environments.
Instructions
Get detailed information about a specific workflow run
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | ID of the workflow | |
| run_id | Yes | ID of the workflow run |
Implementation Reference
- src/operations/workflows.ts:46-56 (handler)The core handler function that makes an API request to retrieve details of a specific workflow run using the RAD Security client.export async function getWorkflowRun( client: RadSecurityClient, workflowId: string, runId: string ): Promise<any> { const response = await client.makeRequest( `/accounts/${client.getAccountId()}/workflows/${workflowId}/runs/${runId}` ); return response; }
- src/operations/workflows.ts:8-11 (schema)Zod schema defining the input parameters for the get_workflow_run tool: workflow_id and run_id.export const GetWorkflowRunSchema = z.object({ workflow_id: z.string().describe("ID of the workflow"), run_id: z.string().describe("ID of the workflow run"), });
- src/index.ts:525-528 (registration)Tool registration in the ListTools handler, defining the tool name, description, and input schema.name: "get_workflow_run", description: "Get detailed information about a specific workflow run", inputSchema: zodToJsonSchema(workflows.GetWorkflowRunSchema),
- src/index.ts:1423-1437 (registration)Tool handler dispatch in the CallToolRequest switch statement, which parses args with the schema and calls the workflows.getWorkflowRun function.case "get_workflow_run": { const args = workflows.GetWorkflowRunSchema.parse( request.params.arguments ); const response = await workflows.getWorkflowRun( client, args.workflow_id, args.run_id ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2) }, ], }; }