Skip to main content
Glama

Docker secret list

docker_secret_list

List Docker Swarm secrets to inspect available secrets and verify configurations; optionally target a named multi-context pool.

Instructions

List swarm secrets (real secrets.list).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "docker_secret_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.9/5.0
Behavior2/5

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

Annotations already declare openWorldHint=true and destructiveHint=false, and the parenthetical '(real secrets.list)' adds the useful signal that this hits the actual Docker daemon rather than an emulation. Beyond that, the description says nothing about required permissions, error behavior when the node is not a swarm manager, or what a listing returns. Note also a tension: the tool plainly reads, yet readOnlyHint is false, which the description does nothing to clarify.

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?

One short, front-loaded sentence with no filler. The parenthetical is slightly cryptic in isolation but compact; nothing needs trimming.

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

Completeness3/5

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

For a simple single-parameter list operation with no output schema, the description is minimally adequate, but it never indicates what is returned (names only vs full secret metadata) or what happens on non-swarm targets. Given there is no output schema to lean on, a sentence on return shape would materially help.

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% for the single optional 'context' parameter, so the schema already carries the meaning (named multi-context pool, default when omitted). The description adds nothing about parameter behavior, which is acceptable given full schema coverage but is the baseline, not a strength.

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?

States a specific verb and resource: 'List swarm secrets', which unambiguously identifies the operation and distinguishes it from docker_secret_create and the k8s secret tools. It does not explicitly name an alternative or contrast with docker_config_list, but the resource is concrete enough that an agent can select it without opening the schema.

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 explicit when-to-use or when-not-to-use guidance, and no alternatives are named. Usage is only implied by the verb 'List'; an agent must infer that this is for enumerating swarm secrets rather than inspecting a specific one.

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