Skip to main content
Glama

Run container

docker_run_container

Launch a Docker container from a specified image with configurable ports, volumes, environment variables, command, labels, and detached mode.

Instructions

Invoke the run_container operation.

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_run_container"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
imageYes
portsNo
detachNo
labelsNo
commandNo
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
volumesNo
environmentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

D1.3/5.0
Behavior1/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 known from structured data. The description adds nothing beyond that — it does not state whether the container is started immediately, whether a name collision fails, what is returned, or how the context parameter affects execution target.

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

Conciseness2/5

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

The single sentence is short but that is under-specification rather than conciseness. There is no lead-in stating purpose or notable constraints, so nothing is front-loaded usefully.

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

Completeness1/5

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

A 9-parameter mutation tool with no output schema and near-zero parameter documentation requires a substantive description to be usable. This definition is completely inadequate for that complexity and gives an agent nothing to call the tool correctly beyond the required 'image' field.

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

Parameters1/5

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

With 9 parameters at 11% schema description coverage, only 'context' carries any schema-level explanation, so the description must compensate for the other eight (image, name, ports, detach, labels, command, volumes, environment). It supplies zero parameter meaning, leaving an agent to guess at formats for ports, volumes and environment.

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 'Invoke the run_container operation' merely restates the tool name in other words, adding no verb or resource detail beyond what the identifier already conveys. It does not distinguish this tool from the many sibling run_container variants (k8s_run_container, podman_run_container) or explain what running a container entails here.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/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 (e.g. Docker daemon availability), and no mention of alternatives or exclusions. An agent gets no basis for choosing docker_run_container over podman_run_container or k8s_run_container.

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