Skip to main content
Glama

Scale Replicaset

cm_k8s_workloads_scale_replicaset

Scale a Kubernetes ReplicaSet to a specified replica count to adjust workload capacity and maintain pod availability.

Instructions

Scale replicaset (cm_k8s_workloads). Manage Kubernetes workloads (pods, rollouts, strategies, statefulsets, daemonsets, replicasets, jobs, cronjobs).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cm_k8s_workloads_scale_replicaset"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoResource name for workload objects (jobs, cronjobs, statefulsets, etc.)
specNoResource specification for create/set operations
sourceNoSource path for copy operations
commandNoCommand to execute in pod (list form)
pod_nameNoPod name for pod operations
replicasNoNumber of replicas for scaling operations
namespaceNoTarget namespace (default: from config)
local_portNoLocal port for port-forward
destinationNoDestination path for copy operations
remote_portNoRemote port for port-forward
exec_commandNoCommand to execute in pod (space-separated string)
manager_typeNoContainer manager: kubernetes (default: auto-detect)
resource_nameNoResource name for rollout operations
resource_typeNoResource type for rollout operations
exec_containerNoContainer name for exec
label_selectorNoLabel selector for filtering pods
attach_containerNoContainer name for attach
rollout_revisionNoRevision number for rollout undo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.8/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true, so the safety profile is covered, but the description adds nothing beyond that — no note that this mutates live replica counts, no effect of setting replicas to 0, no permission requirements, no namespace defaults. For a write operation across 18 parameters this is thin.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is tight and front-loaded. The second sentence is a suite-level boilerplate enumeration that does not help an agent decide or call this specific tool, and it is longer than the useful part.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a mutating tool with 18 parameters and zero required fields, yet the description never indicates that 'name', 'replicas' and typically 'namespace' are the operative inputs for a scale call. An output schema exists so return values need not be explained, but the selection of correct parameters for this operation is left entirely to the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter including 'replicas' and 'namespace' is already documented in the schema. The description adds no meaning beyond that, which is the baseline-3 case when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence states a specific verb and resource ('Scale replicaset') and ties it to a product namespace (cm_k8s_workloads). The second sentence is a generic catalog of workload types the parent suite manages rather than a statement of what this tool does, and nothing distinguishes it from the sibling k8s_scale_replica_set.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus k8s_scale_replica_set or any other scaling sibling, and no mention of prerequisites, scaling to zero, or which parameters select the target. The agent must infer everything from the name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools