Skip to main content
Glama

docker_create_container

Create a Docker container from an image with configurable name, ports, volumes, environment, network, command, and auto-remove behavior.

Instructions

Create a new Docker container

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": {
      "image": "<image>"
    },
    "name": "docker_create_container"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoContainer name
imageYesDocker image name
portsNoContainer-to-host port bindings
detachNoRun container in the background
labelsNoContainer labels
commandNoCommand to run in container
networkNoNetwork to attach the container to
volumesNoVolume mappings
entrypointNoEntrypoint to run in container
auto_removeNoAutomatically remove the container
environmentNoEnvironment variables dictionary

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.3/5.0
Behavior2/5

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

Annotations already declare openWorldHint=false, idempotentHint=false and destructiveHint=false, so the safety profile is covered. The description adds nothing on top of that: it doesn't say whether the container starts immediately, whether the image is pulled if missing, how duplicate names are handled, or what auto_remove implies.

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?

The single sentence is front-loaded and free of waste, but its brevity comes from under-specification rather than discipline. It is appropriately short yet says almost nothing.

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?

This is a creation tool with 11 parameters, a required image, and meaningful options like detach, ports, volumes and auto_remove. An output schema exists so return values need not be explained, but the description leaves the agent without the behavioral context needed to call a mutating, non-idempotent tool confidently.

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 11 parameters are already documented in the schema. The description contributes no additional parameter meaning, which is acceptable at the baseline for a fully documented schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description reads 'Create a new Docker container', which is a near-verbatim restatement of the tool name docker_create_container. It conveys the verb and resource but gives an agent no distinguishing detail versus siblings such as docker_run_container or docker_recreate_container.

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 guidance, no prerequisites, and no mention of when to prefer docker_run_container or docker_recreate_container instead. The agent must infer everything from the name and the schema.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.