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

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