Skip to main content
Glama

Scale statefulset

k8s_scale_statefulset

Scale a Kubernetes StatefulSet to a specified replica count in a chosen namespace or multi-context pool, keeping stateful workloads at the desired capacity.

Instructions

Scale a StatefulSet.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
replicasNo
namespaceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

D1.6/5.0
Behavior2/5

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

Annotations supply the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true), so the description only needs to add context, and it adds none. It does not disclose that 'replicas' defaults to 1, meaning an omitted argument silently scales a workload down, nor what happens to running pods during the scale.

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

Conciseness2/5

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

The single sentence is short but wastes no words only because it conveys almost no information. Brevity here reflects under-specification rather than disciplined editing.

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

Completeness1/5

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

For a mutating, cluster-affecting tool with four parameters, no output schema, and thin annotation coverage, the description is far too sparse. An agent cannot tell what a scale operation returns, how to verify success, or what the default replica count will do to a live workload.

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

Parameters1/5

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

Schema description coverage is only 25% – only 'context' is documented. The description says nothing about 'name' (required), 'replicas' (default 1), or 'namespace', so the meaning of the most consequential parameter is left entirely to the type signature.

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

Purpose2/5

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

"Scale a StatefulSet" restates the tool name and title verbatim, adding no differentiating detail. It does name a verb and a resource, but it distinguishes nothing from siblings such as k8s_scale_deployment, k8s_scale_replica_set, or docker_scale_service.

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

Usage Guidelines1/5

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

There is no when-to-use guidance, no prerequisite or permission note, and no mention of any alternative tool. An agent has no basis for choosing this over the other scale tools in the catalog.

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