Skip to main content
Glama

list_clusters

Retrieve and manage Kubernetes clusters with RAD Security's tool. Paginate results by specifying page size and number for efficient cluster monitoring.

Instructions

List Kubernetes clusters managed by RAD Security

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number to retrieve for list_clusters (default: 1)
page_sizeNoNumber of clusters per page for list_clusters (default: 50)

Implementation Reference

  • The main handler function that executes the list_clusters tool logic by making an API request to retrieve clusters with pagination parameters.
    export async function listClusters( client: RadSecurityClient, page_size: number = 50, page: number = 1, ): Promise<any> { const params: Record<string, any> = { page_size, page }; return client.makeRequest( `/accounts/${client.getAccountId()}/clusters`, params ); }
  • Zod schema defining the input parameters for the list_clusters tool (page_size and page).
    export const ListClustersSchema = z.object({ page_size: z.number().optional().default(50).describe("Number of clusters per page for list_clusters (default: 50)"), page: z.number().optional().default(1).describe("Page number to retrieve for list_clusters (default: 1)"), });
  • src/index.ts:128-132 (registration)
    Registration of the list_clusters tool in the ListToolsRequest handler, providing name, description, and input schema.
    { name: "list_clusters", description: "List Kubernetes clusters managed by RAD Security", inputSchema: zodToJsonSchema(clusters.ListClustersSchema), },
  • src/index.ts:422-428 (registration)
    Dispatch logic in the CallToolRequest handler's switch case for list_clusters, parsing arguments and invoking the handler function.
    case "list_clusters": { const args = clusters.ListClustersSchema.parse(request.params.arguments); const response = await clusters.listClusters(client, args.page_size, args.page); 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