@@ -26,7 +26,7 @@ func NewGetResourceTool(pool k8s.ClientPool) fxctx.Tool {
26
26
27
27
inputSchema := toolinput .NewToolInputSchema (
28
28
toolinput .WithString (contextProperty , "Name of the Kubernetes context to use, defaults to current context" ),
29
- toolinput .WithString (namespaceProperty , "Namespace to get resource from" ),
29
+ toolinput .WithString (namespaceProperty , "Namespace to get resource from, skip for cluster resources " ),
30
30
toolinput .WithString (groupProperty , "API Group of the resource to get" ),
31
31
toolinput .WithString (versionProperty , "API Version of the resource to get" ),
32
32
toolinput .WithRequiredString (kindProperty , "Kind of resource to get" ),
@@ -37,10 +37,10 @@ func NewGetResourceTool(pool k8s.ClientPool) fxctx.Tool {
37
37
return fxctx .NewTool (
38
38
& mcp.Tool {
39
39
Name : "get-k8s-resource" ,
40
- Description : utils .Ptr ("Get Kubernetes resource completely" ),
40
+ Description : utils .Ptr ("Get details of any Kubernetes resource like pod, node or service - completely as JSON or rendered using template " ),
41
41
InputSchema : inputSchema .GetMcpToolInputSchema (),
42
42
},
43
- func (_ context.Context , args map [string ]interface {} ) * mcp.CallToolResult {
43
+ func (_ context.Context , args map [string ]any ) * mcp.CallToolResult {
44
44
input , err := inputSchema .Validate (args )
45
45
if err != nil {
46
46
return utils .ErrResponse (err )
0 commit comments