Skip to main content
Glama

get_secrets

Read-only

Fetch Secret metadata. Returns: name, namespace, type, the list of data key names (NOT their decoded values), data key count, age, and for service-account token secrets only the bound ServiceAccount and a boolean indicating whether the token field is populated. Decoded secret values are never returned. A list needs namespace or all_namespaces=true and carries total, returned, truncated and scope.

Input Schema

NameRequiredDescriptionDefault
nameNoSpecific Secret name to fetch metadata for.
namespaceNoKubernetes namespace to list. A list needs either this or all_namespaces=true; a named read (name) needs neither.
cluster_idYesAnkra cluster id (UUID) the call targets. Discover ids with list_clusters.
all_namespacesNoSet true to list every namespace on the cluster deliberately. Omit it and pass namespace to list one namespace; a list with neither is refused (error_code scope_required).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

With readOnlyHint already covering safety, the description goes well beyond annotations: it enumerates the returned metadata fields, states decoded secret values are never returned, and describes the list envelope (total, returned, truncated, scope). This is exactly the behavioral context an agent needs for a metadata-only read.

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

Conciseness4/5

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

Front-loaded with the core purpose and kept dense, with the critical 'no decoded values' caveat placed early. The enumeration of returned fields is long, but since no output schema exists this content is load-bearing rather than padding.

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?

No output schema is present, so the description must carry the return contract, and it does so comprehensively — field list, list envelope, and the explicit exclusion. Nothing material for correct invocation is missing.

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 description coverage is 100%, so all four parameters are already documented, and the schema itself restates the namespace/all_namespaces/name relationship. The description adds the list envelope semantics but no new parameter syntax or format detail, so the baseline 3 holds.

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?

States a precise verb+resource ('Fetch Secret metadata') and immediately bounds the scope by enumerating exactly what is returned and, critically, that decoded values never are. This distinguishes it from value-exposing siblings like list_application_env_secrets or set_application_env_secret.

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?

The scoping requirement for a list (namespace or all_namespaces=true) is given, and a named read is implicitly opposed to a list read, but there is no explicit when-to-use-this-vs-another-tool guidance or named alternative. Usage 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources