Skip to main content
Glama
rad-security

RAD Security

Official
by rad-security

get_cloud_resource_details

Retrieve detailed information about specific cloud resources from AWS, GCP, Azure, or Linode to support security analysis and monitoring.

Instructions

Get detailed information about a specific cloud resource

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
providerYesCloud provider (aws, gcp, azure, linode)
resource_typeYesType of cloud resource (to be fetched from get_cloud_resource_facet_values or from list_cloud_resources)
resource_idYesID of the cloud resource

Implementation Reference

  • The main handler function that executes the tool logic by making a specific API request to retrieve details for the given cloud resource.
    export async function getCloudResourceDetails(
      client: RadSecurityClient,
      provider: ProviderType,
      resource_type: string,
      resource_id: string
    ): Promise<any> {
      return client.makeRequest(
        `/accounts/${client.getAccountId()}/cloud-inventory/v1/${provider}/${resource_type}/${resource_id}`
      );
    }
  • Zod schema defining the input parameters for the tool: provider, resource_type, and resource_id.
    export const GetCloudResourceDetailsSchema = z.object({
      provider: ProviderTypeEnum.describe("Cloud provider (aws, gcp, azure, linode)"),
      resource_type: z.string().describe("Type of cloud resource (to be fetched from get_cloud_resource_facet_values or from list_cloud_resources)"),
      resource_id: z.string().describe("ID of the cloud resource"),
    });
  • src/index.ts:202-208 (registration)
    Tool metadata registration in the ListTools handler, including name, description, and input schema reference.
      name: "get_cloud_resource_details",
      description:
        "Get detailed information about a specific cloud resource",
      inputSchema: zodToJsonSchema(
        cloudInventory.GetCloudResourceDetailsSchema
      ),
    },
  • src/index.ts:856-871 (registration)
    Dispatch logic in the CallTool handler that validates input with the schema and calls the handler function.
    case "get_cloud_resource_details": {
      const args = cloudInventory.GetCloudResourceDetailsSchema.parse(
        request.params.arguments
      );
      const response = await cloudInventory.getCloudResourceDetails(
        client,
        args.provider,
        args.resource_type,
        args.resource_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 the full burden of behavioral disclosure. It states it 'Get detailed information,' implying a read-only operation, but does not clarify aspects like authentication needs, rate limits, error handling, or what 'detailed information' entails (e.g., format, depth). This leaves significant gaps for a tool with no annotations.

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, clear sentence with no wasted words. It is front-loaded and efficiently conveys the core purpose without unnecessary elaboration, 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 complexity of cloud resources and lack of annotations and output schema, the description is insufficient. It does not explain what 'detailed information' includes, potential return formats, or any behavioral traits. For a tool with three required parameters and no structured output guidance, more context is needed to ensure proper usage.

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%, so the schema fully documents the parameters (provider, resource_type, resource_id). The description adds no additional meaning beyond what the schema provides, such as explaining how these parameters interact or examples of valid inputs. 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.

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 ('detailed information about a specific cloud resource'), making the purpose understandable. However, it does not differentiate from sibling tools like 'get_cloud_resource_facets' or 'get_cloud_resource_facet_value', which might also retrieve cloud resource information, so it lacks sibling distinction.

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 does not mention prerequisites, such as needing to fetch resource_type from other tools like 'get_cloud_resource_facet_values' or 'list_cloud_resources' as hinted in the schema, nor does it specify use cases or exclusions.

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