Skip to main content
Glama
rad-security

RAD Security

Official
by rad-security

list_framework_requirements

Lists compliance framework requirements for cloud and Kubernetes environments to help meet security standards.

Instructions

List all requirements for a specific compliance framework

Input Schema

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

Implementation Reference

  • Core handler function that makes the API request to list requirements for a specific compliance framework.
    export async function listFrameworkRequirements(
      client: RadSecurityClient,
      frameworkName: 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`,
        params
      );
    }
  • Zod schema defining input parameters for the list_framework_requirements tool.
    // Schema for list_framework_requirements
    export const ListFrameworkRequirementsSchema = z.object({
      framework_name: z.string().describe("Name of the compliance framework"),
      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:239-244 (registration)
    Registration of the tool metadata (name, description, inputSchema) in the ListToolsRequest handler.
    name: "list_framework_requirements",
    description:
      "List all requirements for a specific compliance framework",
    inputSchema: zodToJsonSchema(
      cloudCompliance.ListFrameworkRequirementsSchema
    ),
  • src/index.ts:918-933 (registration)
    Execution handler in the CallToolRequest switch statement that parses arguments, invokes the core handler, and returns the response.
    case "list_framework_requirements": {
      const args = cloudCompliance.ListFrameworkRequirementsSchema.parse(
        request.params.arguments
      );
      const response = await cloudCompliance.listFrameworkRequirements(
        client,
        args.framework_name,
        args.datasource_ids,
        args.page,
        args.page_size
      );
      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