Skip to main content
Glama
xenmcp-docker-agent

xenmcp-docker-agent

inspect_container

Read-only

Inspect a Docker container by name or ID to get state, restart policy, OOM kills, health checks, limits, mounts, and networks—excluding environment variables.

Instructions

State, exit code, OOM kill, restart count and policy, health check, limits, log driver, mounts and networks of one container. Never its environment variables.

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": {
      "container": "<container>"
    },
    "name": "inspect_container"
  }
}

Input Schema

NameRequiredDescriptionDefault
containerYesContainer name (as in list_containers) or id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds a genuinely useful behavioral fact beyond them: environment variables are deliberately withheld, which prevents the agent from fishing for secrets here. It still says nothing about failure modes such as a nonexistent container or a stopped container.

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 tight sentences, front-loaded with the returned content rather than preamble, and no filler. The field enumeration is a dense run-on but every item carries information, and the exclusion clause is short and earns its place.

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?

For a single-parameter, read-only tool with no output schema, the field list serves as a de facto return-value summary and the env-var exclusion closes the most likely misinterpretation. The main remaining gap is the absence of any routing versus the sibling diagnostic tools.

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% and the single parameter already documents that it accepts a container name (as in list_containers) or id. The description adds no syntax, format, or edge-case detail beyond the schema, so the baseline of 3 applies.

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 enumerates the exact fields returned (state, exit code, OOM kill, restart count/policy, health check, limits, log driver, mounts, networks) for one container, which effectively conveys 'inspect this container's config and state' and implicitly separates it from container_logs and container_stats. It never states a verb explicitly, and it doesn't name a sibling, so it falls short of full differentiation.

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?

There is no statement about when to choose this over container_stats, container_logs, docker_info, or recent_events. The only directional language is the negative scope 'Never its environment variables,' which is a content exclusion rather than usage guidance.

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