Skip to main content
Glama

inspect_container

Retrieve a container's state, configuration, and network details without modifying it; environment values are redacted for read-only diagnostics.

Instructions

Inspect a container's state, config, and networking. Read-only; env values are redacted.

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
containerYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the burden, and it steps up by declaring the operation read-only (a safety-relevant fact) and disclosing data handling: environment values are redacted in the output. It does not cover permission requirements or failure behavior for a missing or stopped container, which keeps it below a 5.

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?

Two tightly packed sentences with the capability first and the behavioral caveats second; nothing is redundant and nothing is buried.

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?

A single-parameter read-only inspect tool whose return shape is covered by an existing output schema does not need return-value prose, and the redaction note plus read-only claim cover the important behavioral surface. The remaining gap is the accepted format for the container identifier.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the single required parameter is documented nowhere, yet the prose does not say whether the identifier is a name, an ID, a prefix, or a compose service. Since only one parameter exists and it is mandatory, this missing format guidance is the main practical gap in the definition.

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 pairs a specific verb ("Inspect") with a specific resource ("a container's state, config, and networking"), which clearly separates it from siblings like container_stats, container_health, get_container_logs, and container_events. It stops short of naming an alternative, but the scope is unambiguous.

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?

Usage is implied by the scope statement, but there is no explicit when-to-use guidance and no routing to related tools such as list_containers (to discover an identifier) or container_health (for health verdicts). The agent must infer selection from sibling names alone.

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