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
Copy file name to clipboardExpand all lines: README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -322,6 +322,13 @@ In case multi-cluster support is enabled (default) and you have access to multip
322
322
-`name` (`string`) **(required)** - Name of the resource
323
323
-`namespace` (`string`) - Optional Namespace to delete the namespaced resource from (ignored in case of cluster scoped resources). If not provided, will delete resource from configured namespace
324
324
325
+
-**resources_scale** - Get or update the scale of a Kubernetes resource in the current cluster by providing its apiVersion, kind, name, and optionally the namespace. If the scale is set in the tool call, the scale will be updated to that value. Always returns the current scale of the resource
326
+
-`apiVersion` (`string`) **(required)** - apiVersion of the resource (examples of valid apiVersion are apps/v1)
327
+
-`kind` (`string`) **(required)** - kind of the resource (examples of valid kind are: StatefulSet, Deployment)
328
+
-`name` (`string`) **(required)** - Name of the resource
329
+
-`namespace` (`string`) - Optional Namespace to get/update the namespaced resource scale from (ignored in case of cluster scoped resources). If not provided, will get/update resource scale from configured namespace
330
+
-`scale` (`integer`) - Optional scale to update the resources scale to. If not provided, will return the current scale of the resource, and not update it
331
+
325
332
</details>
326
333
327
334
<details>
@@ -397,7 +404,7 @@ In case multi-cluster support is enabled (default) and you have access to multip
397
404
-`resource_name` (`string`) - Name of the resource to get traces for. Required if traceId is not provided.
398
405
-`resource_type` (`string`) - Type of resource to get traces for (app, service, workload). Required if traceId is not provided.
399
406
-`startMicros` (`string`) - Start time for traces in microseconds since epoch (optional, defaults to 10 minutes before current time if not provided, only used when traceId is not provided)
400
-
-`tags` (`string`) - JSON string of tags to filter traces (optional, only used when traceId is not provided)
407
+
-`tags` (`string`) - JSON string of tags to filter traces (optional, only used when traceId is not provided)
401
408
-`traceId` (`string`) - Unique identifier of the trace to retrieve detailed information for. If provided, this will return detailed trace information and other parameters (resource_type, namespace, resource_name) are not required.
Copy file name to clipboardExpand all lines: pkg/mcp/testdata/toolsets-core-tools.json
+40Lines changed: 40 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -483,5 +483,45 @@
483
483
]
484
484
},
485
485
"name": "resources_list"
486
+
},
487
+
{
488
+
"annotations": {
489
+
"title": "Resources: Scale",
490
+
"destructiveHint": true,
491
+
"idempotentHint": true,
492
+
"openWorldHint": true
493
+
},
494
+
"description": "Get or update the scale of a Kubernetes resource in the current cluster by providing its apiVersion, kind, name, and optionally the namespace. If the scale is set in the tool call, the scale will be updated to that value. Always returns the current scale of the resource",
495
+
"inputSchema": {
496
+
"type": "object",
497
+
"properties": {
498
+
"apiVersion": {
499
+
"description": "apiVersion of the resource (examples of valid apiVersion are apps/v1)",
500
+
"type": "string"
501
+
},
502
+
"kind": {
503
+
"description": "kind of the resource (examples of valid kind are: StatefulSet, Deployment)",
504
+
"type": "string"
505
+
},
506
+
"name": {
507
+
"description": "Name of the resource",
508
+
"type": "string"
509
+
},
510
+
"namespace": {
511
+
"description": "Optional Namespace to get/update the namespaced resource scale from (ignored in case of cluster scoped resources). If not provided, will get/update resource scale from configured namespace",
512
+
"type": "string"
513
+
},
514
+
"scale": {
515
+
"description": "Optional scale to update the resources scale to. If not provided, will return the current scale of the resource, and not update it",
Copy file name to clipboardExpand all lines: pkg/mcp/testdata/toolsets-full-tools-multicluster-enum.json
+48Lines changed: 48 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -760,5 +760,53 @@
760
760
]
761
761
},
762
762
"name": "resources_list"
763
+
},
764
+
{
765
+
"annotations": {
766
+
"title": "Resources: Scale",
767
+
"destructiveHint": true,
768
+
"idempotentHint": true,
769
+
"openWorldHint": true
770
+
},
771
+
"description": "Get or update the scale of a Kubernetes resource in the current cluster by providing its apiVersion, kind, name, and optionally the namespace. If the scale is set in the tool call, the scale will be updated to that value. Always returns the current scale of the resource",
772
+
"inputSchema": {
773
+
"type": "object",
774
+
"properties": {
775
+
"apiVersion": {
776
+
"description": "apiVersion of the resource (examples of valid apiVersion are apps/v1)",
777
+
"type": "string"
778
+
},
779
+
"context": {
780
+
"description": "Optional parameter selecting which context to run the tool in. Defaults to fake-context if not set",
781
+
"enum": [
782
+
"extra-cluster",
783
+
"fake-context"
784
+
],
785
+
"type": "string"
786
+
},
787
+
"kind": {
788
+
"description": "kind of the resource (examples of valid kind are: StatefulSet, Deployment)",
789
+
"type": "string"
790
+
},
791
+
"name": {
792
+
"description": "Name of the resource",
793
+
"type": "string"
794
+
},
795
+
"namespace": {
796
+
"description": "Optional Namespace to get/update the namespaced resource scale from (ignored in case of cluster scoped resources). If not provided, will get/update resource scale from configured namespace",
797
+
"type": "string"
798
+
},
799
+
"scale": {
800
+
"description": "Optional scale to update the resources scale to. If not provided, will return the current scale of the resource, and not update it",
Copy file name to clipboardExpand all lines: pkg/mcp/testdata/toolsets-full-tools-multicluster.json
+44Lines changed: 44 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -680,5 +680,49 @@
680
680
]
681
681
},
682
682
"name": "resources_list"
683
+
},
684
+
{
685
+
"annotations": {
686
+
"title": "Resources: Scale",
687
+
"destructiveHint": true,
688
+
"idempotentHint": true,
689
+
"openWorldHint": true
690
+
},
691
+
"description": "Get or update the scale of a Kubernetes resource in the current cluster by providing its apiVersion, kind, name, and optionally the namespace. If the scale is set in the tool call, the scale will be updated to that value. Always returns the current scale of the resource",
692
+
"inputSchema": {
693
+
"type": "object",
694
+
"properties": {
695
+
"apiVersion": {
696
+
"description": "apiVersion of the resource (examples of valid apiVersion are apps/v1)",
697
+
"type": "string"
698
+
},
699
+
"context": {
700
+
"description": "Optional parameter selecting which context to run the tool in. Defaults to fake-context if not set",
701
+
"type": "string"
702
+
},
703
+
"kind": {
704
+
"description": "kind of the resource (examples of valid kind are: StatefulSet, Deployment)",
705
+
"type": "string"
706
+
},
707
+
"name": {
708
+
"description": "Name of the resource",
709
+
"type": "string"
710
+
},
711
+
"namespace": {
712
+
"description": "Optional Namespace to get/update the namespaced resource scale from (ignored in case of cluster scoped resources). If not provided, will get/update resource scale from configured namespace",
713
+
"type": "string"
714
+
},
715
+
"scale": {
716
+
"description": "Optional scale to update the resources scale to. If not provided, will return the current scale of the resource, and not update it",
0 commit comments