Skip to main content
Glama

list-clusterrolebindings

Retrieve cluster role bindings in Kubernetes to manage access control and permissions across your cluster resources.

Instructions

List Kubernetes cluster role bindings

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler logic for the 'list-clusterrolebindings' tool. It runs the kubectl command to list clusterrolebindings with wide output and returns the result as text content.
    case "list-clusterrolebindings": { const cmd = `kubectl get clusterrolebindings -o wide`; const { stdout } = await execAsync(cmd); return { content: [{ type: "text", text: stdout || "No cluster role bindings found" }] }; }
  • The tool definition including name, description, and empty input schema for 'list-clusterrolebindings'. This is used for registration and validation.
    name: "list-clusterrolebindings", description: "List Kubernetes cluster role bindings", inputSchema: { type: "object", properties: {} } },
  • server.js:1392-1394 (registration)
    Registers the list of all tools, including 'list-clusterrolebindings', for the ListToolsRequest.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });

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/thekaranpargaie/kube-mcp'

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