get_cloud_resource_facet_value
Retrieve specific facet values from cloud providers like AWS, GCP, Azure, or Linode to enhance security insights and resource management in RAD Security.
Instructions
Get values for a specific facet from a cloud provider
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| facet_id | Yes | ID of the facet | |
| provider | Yes | Cloud provider (aws, gcp, azure, linode) |
Implementation Reference
- src/operations/cloud-inventory.ts:93-101 (handler)The handler function implementing the core logic: makes an API request to retrieve facet values for a given provider and facet_id.export async function getCloudResourceFacetValues( client: RadSecurityClient, provider: ProviderType, facet_id: string ): Promise<any> { return client.makeRequest( `/accounts/${client.getAccountId()}/cloud-inventory/v1/${provider}/facets/${facet_id}` ); }
- Zod schema for input validation: requires provider and facet_id.export const GetCloudResourceFacetValuesSchema = z.object({ provider: ProviderTypeEnum.describe("Cloud provider (aws, gcp, azure, linode)"), facet_id: z.string().describe("ID of the facet"), });
- src/index.ts:177-181 (registration)Tool registration in the listTools response, defining name, description, and input schema.{ name: "get_cloud_resource_facet_value", description: "Get values for a specific facet from a cloud provider", inputSchema: zodToJsonSchema(cloudInventory.GetCloudResourceFacetValuesSchema), },
- src/index.ts:505-515 (registration)Dispatch logic in callTool handler: parses arguments, invokes the handler, and formats response.case "get_cloud_resource_facet_value": { const args = cloudInventory.GetCloudResourceFacetValuesSchema.parse(request.params.arguments); const response = await cloudInventory.getCloudResourceFacetValues( client, args.provider, args.facet_id ); return { content: [{ type: "text", text: JSON.stringify(response, null, 2) }], }; }