Skip to main content
Glama

Docker config create

docker_config_create

Create a Docker Swarm config from a config name and data to store configuration for services, with optional multi-context targeting.

Instructions

Create a swarm config (real configs.create).

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": {
      "config_name": "<config_name>",
      "data": "<data>"
    },
    "name": "docker_config_create"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds only the fact that this performs a real configs.create against a swarm, and omits useful behavior such as swarm-required preconditions, whether configs are immutable once created, or how the data payload is stored.

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

Conciseness3/5

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

It is a single front-loaded sentence with zero filler, which is good structure. However, that brevity comes at the cost of under-specification rather than genuine economy, so it lands at merely adequate.

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

Completeness2/5

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

For a mutation tool with three parameters, no output schema, and only partial schema documentation, the description is too thin: it never explains what a swarm config is in this context, what the call returns, or what an agent needs before calling it. The parenthetical SDK reference is the only extra value.

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

Parameters2/5

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

Schema description coverage is 33%: config_name and data are undocumented in both the schema and the description, and the description says nothing to clarify their meaning or expected form (e.g. whether data is base64-encoded, size limits, name uniqueness). With low coverage, the description was expected to compensate but does not.

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 gives a specific verb and resource ("Create a swarm config") and even annotates the underlying SDK call (configs.create), which lets an agent distinguish creating a config from listing configs. It stops short of explicitly contrasting itself with the sibling creation tools (docker_secret_create, docker_create_network, etc.), so it is clear but not maximally differentiated.

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 when-to-use or when-not-to-use guidance, no mention of prerequisites such as an initialized swarm, and no routing to alternatives. An agent must infer the context entirely from the tool name and the word "swarm".

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