Skip to main content
Glama

container_pause

Suspend all processes in a container using the kernel freezer cgroup, halting CPU usage while preserving memory and file descriptors. Resume with the unpause counterpart.

Instructions

Suspend all processes in a container using the kernel freezer cgroup.

Unlike sending SIGSTOP, the freezer cgroup suspends processes without their being able to observe or intercept the suspension. A paused container keeps its resources (memory, open file descriptors) but consumes no CPU. Resume with container_unpausecontainer_exec fails against a paused container until it is unpaused.

args: id_or_name - The container id or name returns: dict - The container's full inspect payload after pause (State.Paused true)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
id_or_nameYes
Behavior5/5

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

Beyond annotations (mutation, non-destructive), the description details the mechanism (freezer cgroup), process suspension behavior, resource retention, CPU impact, and return value (`State.Paused true`). No contradiction with annotations.

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 well-structured with a clear opening, comparison, effects, and usage hint. It is reasonably concise, though the technical detail on cgroups could be simplified.

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

Completeness4/5

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

The description covers behavior, return value, and important caveats (exec fails, resume needed). It does not explicitly mention prerequisites (e.g., container must be running) or idempotency, but for a simple tool it is largely complete.

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?

With 0% schema coverage, the description provides a basic explanation for the only parameter ('The container id or name'). It adds meaning but lacks format specifics or examples, so it's adequate but not thorough.

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 clearly states the action ('suspend all processes') and resource ('container'), and distinguishes itself from related tools like `container_unpause` and `container_exec`, providing specific behavioral comparisons.

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?

It contextualizes when to use pause (to freeze without process awareness, no CPU consumption) and mentions the counterpart `container_unpause` and the incompatibility with `container_exec`. However, it does not explicitly exclude alternatives like `container_stop`.

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/GavinLucas/docker-mcp'

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