Skip to main content
Glama

get_cloud_resource_facet_value

Retrieve specific facet values from cloud providers like AWS, GCP, Azure, or Linode to support security analysis and resource management in cloud environments.

Instructions

Get values for a specific facet from a cloud provider

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
providerYesCloud provider (aws, gcp, azure, linode)
facet_idYesID of the facet

Implementation Reference

  • The async handler function that executes the tool logic by calling the RAD Security API to fetch facet values for the specified provider and facet.
    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 input schema for the tool, validating provider and facet_id parameters.
    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:218-224 (registration)
    Tool registration in the ListTools response, specifying the tool 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:886-900 (registration)
    Tool execution handler in the CallToolRequest switch statement, which parses input, calls the core handler, and formats the 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