Skip to main content
Glama
rad-security

RAD Security

Official
by rad-security

list_compliance_controls

View compliance control summaries for cloud accounts, filter by status and providers to monitor security posture.

Instructions

List all compliance control summaries for the account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusNoFilter by failure status: failing or passing
providersNoComma-separated list of cloud providers (aws, azure, gcp, linode)
pageNoPage number starting from 1
page_sizeNoPage size

Implementation Reference

  • The handler function that implements the core logic for the 'list_compliance_controls' tool by making an API request to retrieve compliance control summaries.
    export async function listComplianceControls(
      client: RadSecurityClient,
      status?: string,
      providers?: string,
      page?: number,
      pageSize?: number
    ): Promise<any> {
      const params: Record<string, any> = {};
    
      if (status) {
        params.status = status;
      }
      if (providers) {
        params.providers = providers;
      }
      if (page !== undefined) {
        params.page = page;
      }
      if (pageSize !== undefined) {
        params.page_size = pageSize;
      }
    
      return client.makeRequest(
        `/accounts/${client.getAccountId()}/compliance/cloud/controls`,
        params
      );
    }
  • Zod schema defining the input parameters and validation for the 'list_compliance_controls' tool.
    // Schema for list_compliance_controls
    export const ListComplianceControlsSchema = z.object({
      status: z.enum(["failing", "passing"]).optional().describe("Filter by failure status: failing or passing"),
      providers: z.string().optional().describe("Comma-separated list of cloud providers (aws, azure, gcp, linode)"),
      page: z.number().optional().describe("Page number starting from 1"),
      page_size: z.number().optional().describe("Page size"),
    });
  • src/index.ts:255-261 (registration)
    Registration of the 'list_compliance_controls' tool in the ListTools response, including name, description, and input schema.
      name: "list_compliance_controls",
      description:
        "List all compliance control summaries for the account",
      inputSchema: zodToJsonSchema(
        cloudCompliance.ListComplianceControlsSchema
      ),
    },
  • src/index.ts:953-969 (registration)
    Handler registration in the CallTool switch statement that parses arguments, calls the listComplianceControls function, and formats the response.
    case "list_compliance_controls": {
      const args = cloudCompliance.ListComplianceControlsSchema.parse(
        request.params.arguments
      );
      const response = await cloudCompliance.listComplianceControls(
        client,
        args.status,
        args.providers,
        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?

No annotations are provided, so the description carries full burden. It mentions 'list all' but doesn't disclose pagination behavior, rate limits, authentication requirements, or what 'summaries' entails. For a listing tool with 4 parameters and no output schema, this leaves significant behavioral 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 wasted words. It's front-loaded with the core action and resource, making it efficient and easy to parse.

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 4 parameters, no annotations, and no output schema, the description is insufficient. It doesn't explain what 'summaries' include, how pagination works, or the tool's scope relative to siblings. For a listing tool in a complex domain with many alternatives, more context is needed.

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%, so the schema fully documents all 4 parameters. The description adds no additional parameter context beyond implying a listing operation, which aligns with the schema but doesn't provide extra semantic value. Baseline 3 is appropriate when 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 all') and resource ('compliance control summaries for the account'), making the purpose immediately understandable. However, it doesn't explicitly differentiate from sibling tools like 'list_compliance_frameworks' or 'list_requirement_controls', which reduces specificity.

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, there's no indication of context, prerequisites, or exclusions that would 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