Skip to main content
Glama
rad-security

RAD Security

Official
by rad-security

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) },
        ],
      };
    }
Behavior2/5

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

No annotations are provided, so the description carries full burden but lacks behavioral details. It doesn't disclose if this is a read-only operation, what permissions are needed, how results are formatted, or any rate limits. The description is too minimal to inform the agent adequately about how the tool behaves beyond its basic purpose.

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

Conciseness4/5

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

The description is a single, efficient sentence with no wasted words, making it easy to parse. However, it could be more front-loaded with critical context (e.g., clarifying 'facet' or usage), but as-is, it's appropriately concise for its limited content.

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 no annotations and no output schema, the description is incomplete for a tool that likely returns data values. It doesn't explain what 'values' are returned (e.g., strings, lists, structured data), error conditions, or how to interpret results. For a tool with two parameters and potential complexity, this leaves significant gaps for the agent.

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?

Schema description coverage is 100%, with clear descriptions for both parameters (provider and facet_id), including an enum for provider. The description adds no extra meaning beyond the schema, such as explaining what a facet_id represents or examples of facet types. Baseline 3 is appropriate as the schema does the heavy lifting.

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

Purpose3/5

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

The description states the action ('Get values') and resource ('for a specific facet from a cloud provider'), which is clear but vague. It doesn't specify what a 'facet' is or how it differs from sibling tools like 'get_cloud_resource_facets' or 'get_cloud_resource_details', leaving room for confusion about its exact scope.

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?

No guidance is provided on when to use this tool versus alternatives. With siblings like 'get_cloud_resource_facets' (likely listing facets) and 'get_cloud_resource_details' (likely broader details), the description offers no context for selection, leaving the agent to guess based on tool names alone.

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