Skip to main content
Glama
rad-security

RAD Security

Official
by rad-security

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
NameRequiredDescriptionDefault
workflow_idYesID of the workflow to get

Implementation Reference

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

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