Skip to main content
Glama
rad-security

RAD Security

Official
by rad-security

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
NameRequiredDescriptionDefault
workflow_idYesID of the workflow
run_idYesID of the workflow run

Implementation Reference

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

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool retrieves information, implying a read-only operation, but doesn't specify if it requires authentication, has rate limits, returns structured data, or handles errors. This leaves significant gaps for a tool that likely interacts with workflow systems.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence that directly states the tool's purpose without unnecessary words. It's front-loaded and efficiently conveys the core functionality, making it easy to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (retrieving detailed run information) and lack of annotations or output schema, the description is minimally adequate but incomplete. It doesn't explain what 'detailed information' includes, potential error conditions, or system dependencies, which could hinder effective use by an AI agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, clearly documenting both required parameters (workflow_id and run_id). The description adds no additional parameter semantics beyond what the schema provides, such as format examples or constraints, so it meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose as retrieving detailed information about a specific workflow run, which is a specific verb (get) and resource (workflow run). However, it doesn't distinguish itself from sibling tools like 'get_workflow' or 'list_workflow_runs' beyond the specificity of 'run' versus 'workflow' or 'runs'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, such as 'get_workflow' for workflow metadata or 'list_workflow_runs' for multiple runs. There's no mention of prerequisites, context, or exclusions, leaving usage entirely implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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