list_workflow_schedules
Retrieve scheduled workflows in RAD Security to monitor automated security tasks. Filter by workflow ID to view specific schedules.
Instructions
List workflow schedules with optional filtering by workflow ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | ID of the workflow to list schedules for |
Implementation Reference
- src/operations/workflows.ts:130-142 (handler)The core handler function that executes the tool logic by calling the RAD Security API to list schedules for a given workflow ID./** * List workflow schedules */ export async function listWorkflowSchedules( client: RadSecurityClient, workflowId: string ): Promise<any> { const response = await client.makeRequest( `/accounts/${client.getAccountId()}/workflows/${workflowId}/schedules` ); return response; }
- src/operations/workflows.ts:23-25 (schema)Zod schema defining the input parameters for the tool (workflow_id).export const ListWorkflowSchedulesSchema = z.object({ workflow_id: z.string().describe("ID of the workflow to list schedules for"), });
- src/index.ts:536-542 (registration)Registration of the tool in the ListToolsRequest handler, specifying name, description, and input schema.name: "list_workflow_schedules", description: "List workflow schedules with optional filtering by workflow ID", inputSchema: zodToJsonSchema( workflows.ListWorkflowSchedulesSchema ), },
- src/index.ts:1454-1467 (registration)Dispatch handler in the CallToolRequest switch statement that validates input with the schema and invokes the listWorkflowSchedules function with the client and workflow_id.case "list_workflow_schedules": { const args = workflows.ListWorkflowSchedulesSchema.parse( request.params.arguments ); const response = await workflows.listWorkflowSchedules( client, args.workflow_id ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2) }, ], }; }