Skip to main content
Glama

Get deployment strategy

k8s_get_deployment_strategy
Read-onlyIdempotent

Retrieve the current deployment strategy for a Kubernetes deployment by name and namespace to verify rollout behavior and configuration.

Instructions

Get current deployment strategy.

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>",
      "namespace": "<namespace>"
    },
    "name": "k8s_get_deployment_strategy"
  }
}

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.
namespaceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and notably openWorldHint=true, so the safety profile is covered. The description adds nothing beyond that: it does not say what the returned strategy looks like (type, rollingUpdate parameters) or that it reads live cluster state via the named context.

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?

One short, front-loaded sentence with no wasted words, but its brevity stems from under-specification rather than discipline. There is room to add a return-value hint and scope clarification without bloat.

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?

There is no output schema, so the description is the only place an agent can learn what 'strategy' means (RollingUpdate vs Recreate, maxSurge/maxUnavailable). With two of three parameters undocumented and no return-value information, the definition is not complete enough for correct invocation and interpretation.

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

Parameters2/5

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

Schema description coverage is only 33% — 'name' and 'namespace' have no descriptions at all — and the description text mentions no parameters, so it does not compensate. It never clarifies that 'name' is the Deployment name in the given namespace, nor how the optional 'context' interacts with multi-cluster selection.

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

Purpose3/5

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

The description names a verb and resource ('Get current deployment strategy'), which is better than a tautology, but 'strategy' is left undefined and nothing distinguishes this from siblings like k8s_get_daemonset_update_strategy or k8s_get_statefulset_update_strategy. An agent must infer from the tool name alone that this targets Deployment workloads specifically.

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?

No when-to-use guidance is given: no statement that this is the read counterpart to k8s_set_deployment_strategy, no prerequisites (e.g., the deployment must exist, permissions needed), and no exclusions. The only usage signal is the name itself.

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