Skip to main content
Glama
docker-mcp
by falkenslab

Stop a lab

lab_down
DestructiveIdempotent

Stop a lab and remove its containers, networks and volumes: what was done inside them is lost, the files in its folder stay, and lab_up brings it back.

Instructions

Stop a lab and remove its containers, networks and volumes: what was done inside them is lost, the files in its folder stay, and lab_up brings it back. It doesn't ask the person, so an agent can clean up the labs it started; say what you're stopping.

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": {
      "lab": "<lab>"
    },
    "name": "lab_down"
  }
}

Input Schema

NameRequiredDescriptionDefault
labYesThe lab's name, as list_labs gives it

Output Schema

NameRequiredDescriptionDefault
stoppedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructiveHint and idempotentHint, but the description goes further by specifying the exact blast radius: work inside the containers is lost, the files in the lab folder persist, and lab_up can recreate it. It also discloses the non-interactive behavior, which is essential for an autonomous agent deciding whether it can call this safely.

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?

Two compact sentences, with the destructive consequence front-loaded via the colon before the reassurance about folder files. Dense but every clause carries information; the trailing "say what you're stopping" is slightly instruction-like rather than descriptive, a minor blemish.

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

Completeness5/5

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

For a one-parameter destructive teardown tool with an output schema already covering return values, nothing an agent needs is missing: destruction scope, data survival, reversibility path, and interactivity are all stated.

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 coverage is 100% and the single `lab` parameter is already documented as the name list_labs returns, including a validation pattern. The description adds no format or naming detail beyond that; "say what you're stopping" refers to user-facing messaging, not the parameter value. Baseline 3 applies.

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?

States a specific verb and resource ("Stop a lab") and immediately enumerates what is removed: containers, networks and volumes. It also names the inverse operation ("lab_up brings it back"), so the agent can distinguish teardown from restore without opening another schema.

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

Usage Guidelines4/5

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

Gives a clear usage context: it does not prompt the person, so an agent may use it to clean up labs it started. That is a real when-to-use signal plus an operational constraint. It stops short of explicitly contrasting with siblings like lab_reset or compose_down, so no exclusion guidance.

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