Skip to main content
Glama

docker_run

Run a Docker container with custom port mappings, environment variables, volume mounts, and restart policy on a remote Linux machine.

Instructions

Run a Docker container with ports, env, volumes, restart policy.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
envNoEnvironment vars, comma-separated: 'KEY=val,KEY2=val2'
nameNoContainer name
imageYesDocker image name
portsNoPort mappings, comma-separated: '8080:80,443:443'
volumeNoVolume mounts, comma-separated: '/host:/container,/data:/data'
restartNoRestart policy (default: unless-stopped)
extra_argsNoAdditional docker run arguments
session_idYes
Behavior2/5

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

No annotations exist, so the description carries the full burden. It fails to disclose behavioral traits such as whether the container runs detached, what happens on name collision, or required permissions (e.g., Docker daemon access). The description is too terse for a mutation tool.

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

Conciseness4/5

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

The description is a single, efficient sentence that front-loads the key purpose. However, it could be slightly expanded without losing conciseness to cover behavioral aspects.

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?

With 8 parameters, no output schema, and no annotations, the description is insufficient. It omits important context such as whether the container runs in the foreground, what the return value is (e.g., container ID), and error handling. A more complete description would include these.

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 high (88%), so the schema already documents parameters well. The description adds marginal value by grouping 'ports, env, volumes, restart policy', but does not clarify formatting beyond what the schema provides.

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 uses a specific verb 'Run' and resource 'Docker container', listing key configurable aspects (ports, env, volumes, restart policy). This clearly distinguishes it from siblings like docker_exec, docker_logs, and docker_stop.

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

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when running a container, but provides no explicit context for when to use this tool versus alternatives (e.g., docker_exec for interactive commands). Sibling names are provided but not leveraged for guidance.

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/yu-xiaohaozi/linux-remote-mcp'

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