Skip to main content
Glama

secret_create

Creates a Docker swarm secret with a name and payload. The secret is write-only: it cannot be read back or changed, so keep your own copy of the value.

Instructions

Create a swarm secret; requires a swarm manager.

Write-once: the payload can never be read back through the API (secret_inspect returns metadata only) and cannot be changed later — to rotate, create a new secret and update the consuming services, keeping your own copy of the value. For non-sensitive data that should stay readable, use config_create instead. Created secrets are stamped with provenance labels.

args: name - Name for the secret (unique within the swarm) data - The secret payload (max 500 KB; must be empty when driver is set) labels - Labels to set on the secret driver - Optional secret-driver config for values held in an external store returns: dict - The created secret's attrs (ID and Spec metadata; never the payload)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
nameYes
driverNo
labelsNo
Behavior5/5

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

Discloses critical behavioral traits: write-once semantics, payload never readable via API, inability to change, provenance labeling, and the data size/empty when driver set constraints. Annotations only state readOnlyHint=false and destructiveHint=false; the description adds substantial safety-critical context without contradicting annotations.

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?

Well-structured: opening one-liner, then behavioral notes in tight prose, followed by a clean args list. Every sentence carries meaningful information without fluff. Front-loaded with purpose and key constraints.

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?

For a 4-param tool with nested objects and no output schema, this description covers: purpose, prerequisites, alternatives, behavior, constraints, parameter meanings, and return value. The explicit note that returns 'never the payload' prevents dangerous assumptions. Missing output schema is compensated by return description.

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?

With 0% schema description coverage, the description fully compensates: name (unique within swarm), data (max 500 KB, must be empty if driver set), labels (labels to set), driver (optional config for external store). It adds semantics and constraints beyond the bare schema types.

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 opens with 'Create a swarm secret' – a specific verb and resource, clearly distinguishing it from config_create, volume_create, and other create tools. It explicitly contrasts with config_create for non-sensitive data, removing ambiguity.

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?

It states the prerequisite ('requires a swarm manager'), provides an explicit alternative for non-sensitive data ('use config_create instead'), and offers rotation workflow guidance ('create a new secret and update the consuming services'). This goes beyond any sibling differentiation.

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/L337-org/docker-mcp'

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