get_workflow
Retrieve detailed workflow information including definition, default arguments, and execution schema for security analysis in Kubernetes and cloud environments.
Instructions
Get detailed information about a specific workflow by ID. It contains the workflow definition, default arguments, and schema how to run the workflow
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | ID of the workflow to get |
Implementation Reference
- src/operations/workflows.ts:61-70 (handler)The core handler function that implements the logic for the 'get_workflow' tool by making an API request to retrieve workflow details using the RAD Security client and the specified workflow ID.export async function getWorkflow( client: RadSecurityClient, workflowId: string ): Promise<any> { const response = await client.makeRequest( `/accounts/${client.getAccountId()}/workflows/${workflowId}` ); return response; }
- src/operations/workflows.ts:19-21 (schema)Zod schema defining the input parameters for the 'get_workflow' tool, specifically requiring a 'workflow_id' string.export const GetWorkflowSchema = z.object({ workflow_id: z.string().describe("ID of the workflow to get"), });
- src/index.ts:512-517 (registration)Registration of the 'get_workflow' tool in the MCP server's listTools handler, including name, description, and input schema.{ name: "get_workflow", description: "Get detailed information about a specific workflow by ID. It contains the workflow definition, default arguments, and schema how to run the workflow", inputSchema: zodToJsonSchema(workflows.GetWorkflowSchema), },
- src/index.ts:1395-1407 (registration)Dispatch logic in the MCP server's CallToolRequest handler that parses input using the schema, calls the getWorkflow handler, and formats the response as MCP content.case "get_workflow": { const args = workflows.GetWorkflowSchema.parse( request.params.arguments ); const response = await workflows.getWorkflow( client, args.workflow_id ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2) }, ], };