Skip to main content
Glama

Set default storage class

k8s_set_default_storage_class

Set the default Kubernetes StorageClass so new persistent volume claims use the intended storage, with an optional context for multi-cluster operations.

Instructions

Set the default StorageClass.

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_set_default_storage_class"
  }
}

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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the safety profile is known. The description adds nothing beyond them: it does not say whether the previous default is unset, that only one default may exist per cluster, whether the change is cluster-scoped or context-scoped, or whether it can fail. For a cluster-wide mutation this is a substantial gap.

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?

Brevity here is under-specification rather than economy: a single sentence that duplicates the title and carries no additional payload. There is nothing to front-load because nothing informative is present.

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?

For a cluster-mutating operation with no output schema and only partial parameter documentation, the description should carry the burden of explaining effects and failure modes. It does not, leaving the agent to guess at the consequences of invoking it.

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 coverage is only 50% — the 'context' parameter is documented in the schema, but 'name' has no description anywhere. The description does not compensate by clarifying that 'name' is the StorageClass to promote to default, nor does it mention the multi-context pool semantics.

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?

The description reads 'Set the default StorageClass.' — a near-verbatim restatement of the tool name and title, adding no scope, no target identification, and no distinguishing detail. It does name a verb and resource, but an agent learns nothing it could not already infer from 'k8s_set_default_storage_class'.

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 when-to-use guidance, no mention of prerequisites (the StorageClass must already exist), and no reference to the closely related sibling k8s_set_default_ingress_class or to k8s_create_storage_class for the case where the class does not yet exist. Usage is left entirely to inference.

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