Skip to main content
Glama

update_secret

Update a Kubernetes Secret by patching its stringData. Existing keys not included in the request are dropped; read them first to preserve.

Instructions

Updates an existing Secret by patching its stringData. KNOWN LIMITATION: The Kubernetes API never returns stringData on read (it is write-only); the API server stores values as base64 in the data field. This means the client-side merge only contains the keys passed in args.stringData — existing keys not included in the request will be silently dropped. If you need to preserve existing keys, read them first via get_secret and re-supply all values.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dryRunNoIf true, simulates the action without making changes
clusterNoTarget cluster name (default: 'default')
namespaceYesThe Kubernetes namespace
secretNameYesThe name of the Secret to update
stringDataYesPlain text key-value pairs to merge into the Secret. Will be encoded automatically.
Behavior5/5

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

With no annotations, the description fully discloses the Kubernetes API behavior: stringData is write-only, values are stored as base64, and keys not in the merge request are silently dropped. It also mentions dryRun behavior.

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

Conciseness5/5

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

The description is concise yet thorough, front-loading the primary action then explaining the limitation and workaround without redundancies. Every sentence adds value.

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

Completeness5/5

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

Given no output schema or annotations, the description is complete: it covers purpose, usage, parameter semantics, behavioral details, and a specific use-case workaround.

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

Parameters5/5

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

The schema covers all parameters with descriptions, but the description adds essential context about the merge semantics of stringData and how dryRun works, enhancing understanding beyond the schema.

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

Purpose5/5

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

The description clearly states 'Updates an existing Secret by patching its stringData,' providing a specific verb and resource. It distinguishes from sibling tools by explaining the unique behavior and complementary tool (get_secret).

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

Usage Guidelines5/5

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

The description explicitly explains when to use this tool and the critical caveat about silently dropping keys. It provides actionable guidance: read existing keys via get_secret and re-supply all values to preserve them.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/apatilgtn/k8scortex-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server