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
| Name | Required | Description | Default |
|---|---|---|---|
| datasource_ids | No | Comma-separated datasource IDs (e.g. AWS Account IDs) | |
| page | No | Page number starting from 1 | |
| page_size | No | Page size |
Implementation Reference
- src/operations/cloud-compliance.ts:53-75 (handler)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) }, ], }; }