Skip to main content
Glama
Toowiredd

ChatGPT MCP Server

container_start

Start a stopped Docker container by providing its ID or name. This tool enables container management through natural language interactions.

Instructions

Start a stopped container

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
containerYesContainer ID or name

Implementation Reference

  • Registration of the 'container_start' tool including its name, description, and input schema definition.
    {
      name: 'container_start',
      description: 'Start a stopped container',
      inputSchema: {
        type: 'object',
        properties: {
          container: {
            type: 'string',
            description: 'Container ID or name',
          },
        },
        required: ['container'],
      },
    },
  • Handler logic for the 'container_start' tool: parses arguments, calls DockerService.startContainer, and formats the response.
    case 'container_start': {
      const { container } = request.params.arguments as { container: string };
      const output = await this.dockerService.startContainer(container);
      return {
        content: [{ type: 'text', text: `Container started: ${output}` }],
      };
    }
  • Core implementation of container start: executes the Docker CLI command 'docker start <container-id>'.
    async startContainer(id: string): Promise<string> {
      return this.executeCommand(`start ${id}`);
    }
  • Utility method to execute Docker CLI commands asynchronously, used by all Docker operations including startContainer.
    async executeCommand(command: string): Promise<string> {
      try {
        const { stdout } = await execAsync(`docker ${command}`);
        return stdout;
      } catch (error: any) {
        throw new McpError(
          ErrorCode.InternalError,
          `Docker command failed: ${error.message}`
        );
      }
    }
Behavior2/5

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

With no annotations provided, the description carries full burden but offers minimal behavioral insight. 'Start' implies a state change (mutation), but it doesn't disclose permissions required, side effects (e.g., network exposure), error conditions (e.g., if container doesn't exist), or what 'started' means operationally (e.g., runs in foreground/background). The description is technically accurate but lacks context needed for safe invocation.

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?

The description is a single, direct sentence with zero wasted words. It's front-loaded with the core action and target, making it immediately scannable. Every word earns its place by conveying essential purpose without redundancy.

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?

Given this is a mutation tool (state change) with no annotations and no output schema, the description is incomplete. It lacks critical context: what permissions are needed, what happens on success/failure, whether it's idempotent, or what the output looks like. For a tool that modifies system state, this leaves significant gaps for an agent to use it correctly.

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%, with the single parameter 'container' documented as 'Container ID or name' in the schema. The description adds no parameter-specific information beyond what the schema provides, so it meets the baseline of 3 where schema does the heavy lifting. No additional syntax, format, or constraints are explained.

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 clearly states the action ('Start') and target resource ('a stopped container'), making the purpose immediately understandable. It distinguishes from siblings like container_stop (opposite action) and container_create (different lifecycle stage). However, it doesn't specify what 'start' entails operationally beyond the basic verb.

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?

The description provides minimal guidance: it implies the container must be 'stopped' (a prerequisite), but offers no explicit when-to-use vs. alternatives. No comparison with container_create (for new containers) or container_exec (for running commands), and no mention of when this tool is inappropriate (e.g., for already running containers).

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/Toowiredd/chatgpt-mcp-server'

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