Skip to main content
Glama

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
NameRequiredDescriptionDefault
facet_idYesID of the facet
providerYesCloud provider (aws, gcp, azure, linode)

Implementation Reference

  • 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) }], }; }

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