secret_inspect
Inspect a Docker swarm secret's metadata by id or name, returning creation time, labels, and driver details without exposing the secret's actual data.
Instructions
Get a swarm secret's metadata by id or name; requires a swarm manager.
The returned attrs never include the secret's actual data (Spec.Data is write-only -
the daemon accepts it on secret_create but never returns it back, by design). Use this
to check a secret's CreatedAt, Labels, or which driver created it, not to read its
contents. To see which services reference it, inspect each service's spec via
service_inspect (there is no server-side filter for "services using this secret").
Returns: dict: The secret's full document, excluding the actual secret data
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": {
"id_or_name": "<id_or_name>"
},
"name": "secret_inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_or_name | Yes |