You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(tools): rename and simplify Kubernetes tools (#54)
Renames all container orchestration-related MCP tools, changing their
prefix from `kubernetes_` to `k8s_`.
Tool names are sent to the LLM within its context (System Prompt) in
every interaction.
Changing `troubleshooting_kubernetes_` (27 characters) to `k8s_` (4
characters) across more than 15 tools represents a significant saving of
repetitive text and reduction in input token consumption.
Moreover, some LLM clients impose a limit of tool name length, this
addresses that limitation as well.
- **Sample Prompt**: "Run this query: MATCH CloudResource WHERE type = 'aws_s3_bucket' LIMIT 10"
110
110
111
-
- **`kubernetes_list_clusters`**
111
+
- **`k8s_list_clusters`**
112
112
- **Description**: Lists the cluster information for all clusters or just the cluster specified.
113
113
- **Required Permission**: `metrics-data.read`
114
114
- **Sample Prompt**: "List all kubernetes clusters" or "Show me info for cluster 'production-gke'"
115
115
116
-
- **`kubernetes_list_nodes`**
116
+
- **`k8s_list_nodes`**
117
117
- **Description**: Lists the node information for all nodes, all nodes from a cluster or just the node specified.
118
118
- **Required Permission**: `metrics-data.read`
119
119
- **Sample Prompt**: "List all kubernetes nodes in the cluster 'production-gke'" or "Show me info for node 'node-123'"
120
120
121
-
- **`kubernetes_list_workloads`**
121
+
- **`k8s_list_workloads`**
122
122
- **Description**: Lists all the workloads that are in a particular state, desired, ready, running or unavailable. The LLM can filter by cluster, namespace, workload name or type.
123
123
- **Required Permission**: `metrics-data.read`
124
124
- **Sample Prompt**: "List all desired workloads in the cluster 'production-gke' and namespace 'default'"
125
125
126
-
- **`kubernetes_list_pod_containers`**
126
+
- **`k8s_list_pod_containers`**
127
127
- **Description**: Retrieves information from a particular pod and container.
128
128
- **Required Permission**: `metrics-data.read`
129
129
- **Sample Prompt**: "Show me info for pod 'my-pod' in cluster 'production-gke'"
130
130
131
-
- **`kubernetes_list_cronjobs`**
131
+
- **`k8s_list_cronjobs`**
132
132
- **Description**: Retrieves information from the cronjobs in the cluster.
133
133
- **Required Permission**: `metrics-data.read`
134
134
- **Sample Prompt**: "List all cronjobs in cluster 'prod' and namespace 'default'"
- **Description**: Shows the top N pods with the highest number of unavailable or unready replicas in a Kubernetes cluster, ordered from highest to lowest.
138
138
- **Required Permission**: `metrics-data.read`
139
139
- **Sample Prompt**: "Show the top 20 unavailable pods in cluster 'production'"
- **Description**: Lists the pods with the highest number of container restarts in the specified scope (cluster, namespace, workload, or individual pod). By default, it returns the top 10.
143
143
- **Required Permission**: `metrics-data.read`
144
144
- **Sample Prompt**: "Show the top 10 pods with the most container restarts in cluster 'production'"
- **Description**: Lists the pods with the highest rate of HTTP 4xx and 5xx errors over a specified time interval, allowing filtering by cluster, namespace, workload type, and workload name.
148
148
- **Required Permission**: `metrics-data.read`
149
149
- **Sample Prompt**: "Show the top 20 pods with the most HTTP errors in cluster 'production'"
- **Description**: Shows the top network errors by pod over a given interval, aggregated by cluster, namespace, workload type, and workload name. The result is an average rate of network errors per second.
153
153
- **Required Permission**: `metrics-data.read`
154
154
- **Sample Prompt**: "Show the top 10 pods with the most network errors in cluster 'production'"
0 commit comments