Skip to main content
Glama

list_unused_ebs_volumes

Identify and list unattached Amazon EBS volumes to help optimize AWS costs and resource management.

Instructions

Lists EBS volumes that are available (not attached to any instance).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler for 'list_unused_ebs_volumes' tool: Queries EC2 for volumes with status 'available' (unused/not attached), maps to relevant fields, and returns JSON.
    if (name === "list_unused_ebs_volumes") { const command = new DescribeVolumesCommand({ Filters: [{ Name: "status", Values: ["available"] }] }); const response = await ec2Client.send(command); const volumes = response.Volumes?.map(v => ({ VolumeId: v.VolumeId, Size: v.Size, Type: v.VolumeType, CreateTime: v.CreateTime, AvailabilityZone: v.AvailabilityZone })) || []; return { content: [{ type: "text", text: JSON.stringify(volumes, null, 2) }] }; }
  • src/index.ts:432-438 (registration)
    Registration of the tool in the ListTools response, including name, description, and empty input schema (no parameters required).
    name: "list_unused_ebs_volumes", description: "Lists EBS volumes that are available (not attached to any instance).", inputSchema: { type: "object", properties: {} } },

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/Bhavesh8890/MCP-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server