Skip to main content
Glama

list_compliance_frameworks

Retrieve available compliance frameworks like CIS, SOC2, and PCI-DSS for cloud resources to assess security posture and meet regulatory requirements.

Instructions

List all compliance frameworks available for cloud resources (e.g., CIS, SOC2, PCI-DSS)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
datasource_idsNoComma-separated datasource IDs (e.g. AWS Account IDs)
pageNoPage number starting from 1
page_sizeNoPage size

Implementation Reference

  • Core handler function that executes the API request to list compliance frameworks based on input parameters.
    export async function listComplianceFrameworks( client: RadSecurityClient, datasourceIds?: string, page?: number, pageSize?: number ): Promise<any> { const params: Record<string, any> = {}; if (datasourceIds) { params.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`, params ); }
  • Zod schema for input validation of the list_compliance_frameworks tool.
    // Schema for list_compliance_frameworks export const ListComplianceFrameworksSchema = z.object({ datasource_ids: z.string().optional().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:230-236 (registration)
    Tool registration in the listTools handler, defining the tool name, description, and input schema.
    { name: "list_compliance_frameworks", description: "List all compliance frameworks available for cloud resources (e.g., CIS, SOC2, PCI-DSS)", inputSchema: zodToJsonSchema( cloudCompliance.ListComplianceFrameworksSchema ),
  • src/index.ts:902-917 (registration)
    MCP tool call handler that parses input arguments using the schema and invokes the core listComplianceFrameworks function.
    case "list_compliance_frameworks": { const args = cloudCompliance.ListComplianceFrameworksSchema.parse( request.params.arguments ); const response = await cloudCompliance.listComplianceFrameworks( client, 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