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
Description: "Gets lists or detailed info for Kubernetes resources (services, workloads) within the mesh",
49
-
InputSchema: &jsonschema.Schema{
50
-
Type: "object",
51
-
Properties: map[string]*jsonschema.Schema{
52
-
"resource_type": {
53
-
Type: "string",
54
-
Description: "Type of resource to get details for (service, workload)",
55
-
Enum: []any{"service", "workload"},
56
-
},
57
-
"namespaces": {
58
-
Type: "string",
59
-
Description: "Comma-separated list of namespaces to get services from (e.g. 'bookinfo' or 'bookinfo,default'). If not provided, will list services from all accessible namespaces",
60
-
},
61
-
"resource_name": {
62
-
Type: "string",
63
-
Description: "Name of the resource to get details for (optional string - if provided, gets details; if empty, lists all).",
52
+
return []api.ServerTool{
53
+
{
54
+
Tool: api.Tool{
55
+
Name: name,
56
+
Description: desc,
57
+
InputSchema: &jsonschema.Schema{
58
+
Type: "object",
59
+
Properties: map[string]*jsonschema.Schema{
60
+
"resource_type": {
61
+
Type: "string",
62
+
Description: "Type of resource to get details for (service, workload)",
63
+
Enum: []any{"service", "workload"},
64
+
},
65
+
"namespaces": {
66
+
Type: "string",
67
+
Description: "Comma-separated list of namespaces to get services from (e.g. 'bookinfo' or 'bookinfo,default'). If not provided, will list services from all accessible namespaces",
68
+
},
69
+
"resource_name": {
70
+
Type: "string",
71
+
Description: "Name of the resource to get details for (optional string - if provided, gets details; if empty, lists all).",
0 commit comments