Skip to main content
Glama
rad-security

RAD Security

Official
by rad-security

list_requirement_controls

Retrieve security controls linked to a compliance requirement within RAD Security to verify framework adherence and manage cloud environment security.

Instructions

List controls associated with a specific requirement within a compliance framework

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
framework_nameYesName of the compliance framework
requirement_idYesID of the requirement within the framework
datasource_idsYesComma-separated datasource IDs (e.g. AWS Account IDs)
pageNoPage number starting from 1
page_sizeNoPage size

Implementation Reference

  • MCP tool call handler that parses input using the schema, calls the core listRequirementControls function with the RadSecurityClient, and formats the response as MCP content.
    case "list_requirement_controls": {
      const args = cloudCompliance.ListRequirementControlsSchema.parse(
        request.params.arguments
      );
      const response = await cloudCompliance.listRequirementControls(
        client,
        args.framework_name,
        args.requirement_id,
        args.datasource_ids,
        args.page,
        args.page_size
      );
      return {
        content: [
          { type: "text", text: JSON.stringify(response, null, 2) },
        ],
      };
    }
  • Zod input schema defining parameters for the list_requirement_controls tool: framework_name, requirement_id, datasource_ids, page, page_size.
    // Schema for list_requirement_controls
    export const ListRequirementControlsSchema = z.object({
      framework_name: z.string().describe("Name of the compliance framework"),
      requirement_id: z.string().describe("ID of the requirement within the framework"),
      datasource_ids: z.string().describe("Comma-separated datasource IDs (e.g. AWS Account IDs)"),
      page: z.number().optional().default(1).describe("Page number starting from 1"),
      page_size: z.number().optional().default(10).describe("Page size"),
    });
  • src/index.ts:247-253 (registration)
    Tool registration entry in the ListToolsRequest handler, specifying the tool name, description, and input schema reference.
      name: "list_requirement_controls",
      description:
        "List controls associated with a specific requirement within a compliance framework",
      inputSchema: zodToJsonSchema(
        cloudCompliance.ListRequirementControlsSchema
      ),
    },
  • Core handler function implementing the tool logic: constructs API parameters and calls client.makeRequest to the specific compliance endpoint for listing requirement controls.
    /**
     * List controls associated with a specific requirement within a compliance framework.
     */
    export async function listRequirementControls(
      client: RadSecurityClient,
      frameworkName: string,
      requirementId: string,
      datasourceIds: string,
      page?: number,
      pageSize?: number
    ): Promise<any> {
      const params: Record<string, any> = { datasource_ids: datasourceIds };
    
      if (page !== undefined) {
        params.page = page;
      }
      if (pageSize !== undefined) {
        params.page_size = pageSize;
      }
    
      return client.makeRequest(
        `/accounts/${client.getAccountId()}/compliance/cloud/frameworks/${encodeURIComponent(frameworkName)}/requirements/${encodeURIComponent(requirementId)}/controls`,
        params
      );
    }
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. While 'List' implies a read-only operation, it doesn't specify whether this is a safe query, if it requires authentication, what the output format looks like, or if there are rate limits. For a tool with 5 parameters and no annotation coverage, this leaves significant gaps in understanding its behavior.

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, efficient sentence that front-loads the core purpose without unnecessary words. Every part of the sentence contributes directly to understanding what the tool does, making it highly concise and well-structured.

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 complexity (5 parameters, no annotations, no output schema), the description is minimally adequate but incomplete. It states the purpose clearly but lacks behavioral details, usage context, and output information, which are crucial for an agent to use this tool effectively in a server with many similar listing tools.

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 schema description coverage is 100%, meaning all parameters are documented in the input schema itself. The description adds no additional parameter semantics beyond what's already in the schema (e.g., it doesn't explain the relationship between 'framework_name' and 'requirement_id' or provide examples for 'datasource_ids'). Baseline 3 is appropriate when the schema does the heavy lifting.

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 action ('List') and target ('controls associated with a specific requirement within a compliance framework'), making the purpose immediately understandable. However, it doesn't explicitly differentiate from sibling tools like 'list_compliance_controls' or 'list_framework_requirements', which might have overlapping functionality in the same domain.

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. With many sibling tools in the compliance and listing categories (e.g., 'list_compliance_controls', 'list_framework_requirements'), there's no indication of context, prerequisites, or exclusions to help an agent choose appropriately.

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