Skip to main content
Glama

get_cloud_resource_facets

Retrieve available facets for filtering cloud resources by provider, enabling efficient resource management and security insights in Kubernetes and cloud environments.

Instructions

Get available facets for filtering cloud resources from a provider

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
providerYesCloud provider (aws, gcp, azure, linode)

Implementation Reference

  • The core handler function that executes the tool logic by making an API request to retrieve cloud resource facets for the specified provider.
    export async function getCloudResourceFacets( client: RadSecurityClient, provider: ProviderType ): Promise<any> { return client.makeRequest( `/accounts/${client.getAccountId()}/cloud-inventory/v1/${provider}/facets` ); }
  • Zod input schema defining the required 'provider' parameter for the tool.
    export const GetCloudResourceFacetsSchema = z.object({ provider: ProviderTypeEnum.describe("Cloud provider (aws, gcp, azure, linode)"), });
  • src/index.ts:172-176 (registration)
    Tool registration object in the listTools handler, defining name, description, and input schema.
    { name: "get_cloud_resource_facets", description: "Get available facets for filtering cloud resources from a provider", inputSchema: zodToJsonSchema(cloudInventory.GetCloudResourceFacetsSchema), },
  • src/index.ts:495-504 (registration)
    Dispatch handler in the CallToolRequest switch statement that validates input and invokes the tool handler.
    case "get_cloud_resource_facets": { const args = cloudInventory.GetCloudResourceFacetsSchema.parse(request.params.arguments); const response = await cloudInventory.getCloudResourceFacets( client, args.provider ); 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