Skip to main content
Glama
rad-security

RAD Security

Official
by rad-security

get_cloud_resource_facets

Retrieve available filtering facets for cloud resources to enable targeted security analysis and resource management across AWS, GCP, Azure, and Linode providers.

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 implements the tool logic by calling the RAD Security API to retrieve available facets for cloud resources of 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 schema defining the input parameters for the tool (provider: aws, gcp, azure, or linode). Used for validation in both tool listing and execution.
    export const GetCloudResourceFacetsSchema = z.object({
      provider: ProviderTypeEnum.describe("Cloud provider (aws, gcp, azure, linode)"),
    });
  • src/index.ts:210-216 (registration)
    Tool registration in the listTools response, defining the tool name, description, and input schema for MCP clients to discover the tool.
      name: "get_cloud_resource_facets",
      description:
        "Get available facets for filtering cloud resources from a provider",
      inputSchema: zodToJsonSchema(
        cloudInventory.GetCloudResourceFacetsSchema
      ),
    },
  • src/index.ts:872-884 (registration)
    Dispatch handler in the CallToolRequest switch statement: validates input with schema, invokes the getCloudResourceFacets handler, formats response as MCP content.
    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) },
        ],
      };
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the action ('Get') but doesn't describe what 'facets' are, the format of the response, whether this is a read-only operation, potential rate limits, or authentication requirements. This leaves significant gaps for an AI agent to understand the tool's behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with no wasted words. It's front-loaded with the core action and resource, making it easy to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is incomplete. It doesn't explain what 'facets' are, the return format, or how this tool fits into broader workflows with sibling tools. For a tool that likely returns structured metadata, more context is needed for effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, with the single parameter 'provider' fully documented in the schema. The description adds no additional parameter semantics beyond implying the provider is needed, so it meets the baseline of 3 where the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Get') and resource ('available facets for filtering cloud resources'), making the purpose understandable. It specifies the scope ('from a provider'), which helps differentiate it from generic facet tools, though it doesn't explicitly distinguish it from sibling tools like 'get_cloud_resource_facet_value'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'list_cloud_resources' or 'get_cloud_resource_details', nor does it explain prerequisites or typical use cases for retrieving facets versus other operations.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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