Skip to main content
Glama

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
NameRequiredDescriptionDefault
workflow_idYesID of the workflow to list runs for

Implementation Reference

  • 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; }
  • 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) }, ], }; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rad-security/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server