Skip to main content
Glama

get_cloud_resource_details

Retrieve detailed information about a specific cloud resource by specifying provider, resource type, and ID. Designed for RAD Security to enhance cloud environment visibility and security insights.

Instructions

Get detailed information about a specific cloud resource

Input Schema

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

Implementation Reference

  • The main handler function that executes the tool logic by making an API request to fetch details for the specified 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:167-171 (registration)
    Tool registration in the ListTools handler, providing name, description, and input schema.
    { name: "get_cloud_resource_details", description: "Get detailed information about a specific cloud resource", inputSchema: zodToJsonSchema(cloudInventory.GetCloudResourceDetailsSchema), },
  • src/index.ts:483-493 (registration)
    Dispatch handler in the CallToolRequest switch statement that parses arguments and invokes the tool 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