Skip to main content
Glama

Unmap secret from service account

k8s_unmap_secret_from_service_account

Remove a secret mapping from a Kubernetes ServiceAccount by specifying the secret name, ServiceAccount name, and namespace to revoke access.

Instructions

Unmap a secret from a ServiceAccount.

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": {
      "secret_name": "<secret_name>",
      "sa_name": "<sa_name>",
      "namespace": "<namespace>"
    },
    "name": "k8s_unmap_secret_from_service_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
sa_nameYes
namespaceYes
secret_nameYes

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 safety profile is partially covered. The description contributes nothing beyond them: it does not say whether the Secret object itself survives, whether the call is idempotent when the mapping is absent, or whether pods referencing the secret are affected. No annotation contradiction, since 'unmap' is a mutation consistent with readOnlyHint=false.

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?

It is a single short sentence with zero wasted words and the resource is front-loaded, so structure is fine. It is, however, concise to the point of vacuity rather than efficiently informative.

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 four-parameter mutating tool with 25% schema coverage, no output schema, and sibling tools that perform the inverse and list operations, the definition leaves nearly everything an agent needs unstated. An agent could not predict the effect, error conditions, or results from this description.

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 25%; only the 'context' parameter is documented in the schema, while secret_name, sa_name, and namespace are bare strings. The description supplies no meaning for any of them, not even clarifying that secret_name and sa_name must already exist or be in the given namespace.

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 sentence 'Unmap a secret from a ServiceAccount' is essentially the tool name and title rendered as prose; it names the resource but adds no scope, no direction beyond the verb, and nothing to distinguish it from k8s_map_secret_to_service_account or k8s_list_service_account_mapped_secrets.

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 prerequisites, and no mention of the inverse mapping tool that an agent would need to choose correctly. The only implied usage is whatever the reader infers from the verb 'unmap'.

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