Skip to main content
Glama

list_eks_clusters

Retrieve Amazon EKS clusters in your current AWS region to monitor and manage Kubernetes environments.

Instructions

Lists EKS clusters in the current region.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'list_eks_clusters' tool. It uses the EKSClient to send a ListEksClustersCommand and returns the list of EKS cluster names as JSON.
    if (name === "list_eks_clusters") { const command = new ListEksClustersCommand({}); const response = await eksClient.send(command); return { content: [{ type: "text", text: JSON.stringify(response.clusters || [], null, 2) }] }; }
  • src/index.ts:732-734 (registration)
    Registration of the 'list_eks_clusters' tool in the list of tools returned by ListToolsRequestHandler.
    name: "list_eks_clusters", description: "Lists EKS clusters in the current region.", inputSchema: { "type": "object", "properties": {} }
  • Input schema for the 'list_eks_clusters' tool (empty object, no parameters).
    inputSchema: { "type": "object", "properties": {} }
  • Initialization of the EKSClient used by the handler.
    const eksClient = new EKSClient({});
  • Import of EKSClient and ListEksClustersCommand (aliased from ListClustersCommand).
    import { EKSClient, ListClustersCommand as ListEksClustersCommand, DescribeClusterCommand } from "@aws-sdk/client-eks";

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