Skip to main content
Glama

Get secret

k8s_get_secret
Read-onlyIdempotent

Read a Kubernetes Secret's metadata and key names, revealing values only when explicitly requested.

Instructions

Read a Secret's metadata and key names; values only with reveal=True.

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish a safe, read-only, idempotent operation, so the description's real contribution is the redaction behavior: values are withheld unless `reveal=True`. That is a security-relevant trait absent from the schema and annotations. It stops short of covering auth requirements, error cases, or whether values are base64-decoded.

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?

A single compact sentence with zero filler, front-loading the resource scope before the conditional caveat. Every clause earns its place.

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

Completeness4/5

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

For a simple read tool with full annotation coverage, no output schema, and one high-stakes flag, the definition covers the essentials: what's returned and how to get sensitive values. Minor gaps remain around cross-namespace behavior and not-found handling, but nothing that would cause a misinvocation.

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

Parameters3/5

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

Schema coverage is only 25% (just `context`), so the description carries extra burden. It meaningfully explains `reveal` behavior, the semantically risky parameter, but leaves `name` and `namespace` undocumented in both schema and description, so it only partially compensates.

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

Purpose4/5

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

The description uses a specific verb and resource ("Read a Secret") and precisely bounds the scope: metadata and key names, not values. That distinguishes it from siblings like k8s_create_secret and k8s_get_secret_state_hash, though it doesn't name any sibling explicitly.

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

Usage Guidelines3/5

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

It gives a conditional usage rule for the `reveal` flag (values only when explicitly requested), which is genuinely useful guidance. But it offers no tool-selection guidance — nothing says when to use this versus k8s_get_secret_state_hash or k8s_get_config — so the usage guidance is implied rather than stated.

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