Skip to content

Commit 745c6e9

Browse files
committed
fix prompt
1 parent bdee465 commit 745c6e9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/kubectl_handler.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,14 @@ def _register_tools(self):
241241

242242
@self.server.tool(
243243
name="ack_kubectl",
244-
description="Execute kubectl command using local kubeconfig file."
244+
description="Execute kubectl command with intelligent context management for ACK clusters. You MUST use this tool when accessing ACK clusters. Using external shells or any other kubectl entrypoints is NOT allowed. Supports cluster_id for automatic context switching and creation."
245245
)
246246
async def ack_kubectl(
247247
ctx: Context,
248248
command: str = Field(
249-
..., description="""Arguments after 'kubectl', e.g. 'get pods -A', 'config get-contexts', 'config use-context <name>'. Don't include the kubectl prefix.
249+
..., description="""IMPORTANT POLICY: When accessing ACK clusters, you MUST use this tool. Do NOT invoke kubectl via shell or any external mechanism.
250+
251+
Arguments after 'kubectl', e.g. 'get pods -A', 'config get-contexts', 'config use-context <name>'. Don't include the kubectl prefix.
250252
251253
IMPORTANT: Do not use interactive commands. Instead:
252254
- Use 'kubectl get -o yaml', 'kubectl patch', or 'kubectl apply' instead of 'kubectl edit'

0 commit comments

Comments
 (0)