Skip to main content
Glama
rad-security

RAD Security

Official
by rad-security

list_control_resources

Retrieve cloud resources linked to specific compliance controls to verify regulatory adherence and identify security gaps.

Instructions

List cloud resources associated with a specific compliance control

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
control_nameYesName of the compliance control
datasource_idsYesComma-separated datasource IDs (e.g. AWS Account IDs)
pageNoPage number starting from 1
page_sizeNoPage size

Implementation Reference

  • The handler function that executes the core logic: makes an API request to the RAD Security backend to list cloud resources failing/passing a specific compliance control.
    /**
     * List resources associated with a specific compliance control.
     */
    export async function listControlResources(
      client: RadSecurityClient,
      controlName: 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/controls/${encodeURIComponent(controlName)}/resources`,
        params
      );
    }
  • Zod schema defining the input parameters for the tool, used for validation in registration and call handler.
    // Schema for list_control_resources
    export const ListControlResourcesSchema = z.object({
      control_name: z.string().describe("Name of the compliance control"),
      datasource_ids: z.string().describe("Comma-separated datasource IDs (e.g. AWS Account IDs)"),
      page: z.number().optional().describe("Page number starting from 1"),
      page_size: z.number().optional().describe("Page size"),
    });
  • src/index.ts:270-277 (registration)
    Tool registration in the ListTools handler: defines the tool name, description, and converts Zod schema to JSON schema for MCP protocol.
    {
      name: "list_control_resources",
      description:
        "List cloud resources associated with a specific compliance control",
      inputSchema: zodToJsonSchema(
        cloudCompliance.ListControlResourcesSchema
      ),
    },
  • src/index.ts:985-1001 (registration)
    Tool invocation handler in the CallToolRequest switch: validates input with schema, calls the handler function, and formats response as MCP content.
    case "list_control_resources": {
      const args = cloudCompliance.ListControlResourcesSchema.parse(
        request.params.arguments
      );
      const response = await cloudCompliance.listControlResources(
        client,
        args.control_name,
        args.datasource_ids,
        args.page,
        args.page_size
      );
      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 lists resources but doesn't describe what the output looks like, whether it's paginated (though parameters suggest it), if there are rate limits, authentication requirements, or potential side effects. For a tool with 4 parameters and no output schema, this leaves significant gaps.

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 with zero waste. It's appropriately sized and front-loaded, directly stating the tool's purpose without unnecessary elaboration or redundancy.

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

Completeness2/5

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

Given the complexity (4 parameters, no annotations, no output schema) and the need to distinguish from many sibling tools, the description is incomplete. It doesn't explain output format, behavioral constraints, or usage context, leaving the agent with insufficient information to use the tool effectively beyond basic parameter passing.

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?

Schema description coverage is 100%, meaning all parameters are documented in the schema itself. The description doesn't add any additional meaning beyond what's in the schema (e.g., it doesn't explain how 'control_name' relates to compliance frameworks or what format 'datasource_ids' should follow beyond the schema's example). 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 ('cloud resources associated with a specific compliance control'), providing a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like 'list_cloud_resources' or 'list_compliance_controls', which would be needed for a perfect score.

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. There are many sibling tools (e.g., 'list_cloud_resources', 'get_compliance_control') that might overlap in functionality, but the description offers no explicit when/when-not instructions or alternative recommendations.

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