Skip to main content
Glama

list_unassociated_eips

Identify Elastic IP addresses not currently linked to any AWS EC2 instance to help optimize resource usage and reduce costs.

Instructions

Lists Elastic IPs that are not associated with any instance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function that lists unassociated Elastic IPs by calling DescribeAddressesCommand and filtering Addresses without AssociationId.
    if (name === "list_unassociated_eips") { const command = new DescribeAddressesCommand({}); const response = await ec2Client.send(command); // Filter where AssociationId is missing const unusedEips = response.Addresses?.filter(a => !a.AssociationId).map(a => ({ PublicIp: a.PublicIp, AllocationId: a.AllocationId, Domain: a.Domain })) || []; return { content: [{ type: "text", text: JSON.stringify(unusedEips, null, 2) }] }; }
  • src/index.ts:439-446 (registration)
    Tool registration in the ListTools response, including name, description, and empty input schema.
    { name: "list_unassociated_eips", description: "Lists Elastic IPs that are not associated with any instance.", inputSchema: { type: "object", properties: {} } },
  • Input schema definition for the tool (empty object).
    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