Skip to main content
Glama

dockerfile_overview

Summarizes a Dockerfile's stages, base images, layer count, exposed ports, final user, workdir, and ENTRYPOINT/CMD forms to help inspect a file before linting; accepts a Dockerfile or directory path.

Instructions

Summarize a Dockerfile: stages with base images (tag/digest), layer count, exposed ports, final user, workdir, and ENTRYPOINT/CMD (exec vs shell form). Start here to understand a file before linting it. path is a Dockerfile or a directory containing one.

Input Schema

NameRequiredDescriptionDefault
pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/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 full burden; it discloses that the operation is a read-only summarization over a local file and lists the specific artifacts returned, including the exec-vs-shell-form distinction. It does not discuss failure modes (e.g., path not found, file that is not a Dockerfile) or permission expectations, which is a modest gap for an inspection tool.

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?

Three sentences with a clean progression: what is produced, when to reach for it, then how to call it. The field enumeration is dense but every item listed is a distinct output the agent would otherwise have to discover, and nothing is redundant with the schema or annotations.

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?

An output schema exists, so the description is not required to document return values, yet it usefully summarizes them anyway; the sole parameter is fully explained. The remaining gap is that it does not clarify how this differs from explain_layers, the closest sibling, which an agent would have to infer.

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

Parameters4/5

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

Schema coverage is 0% — the schema only declares `path` as a string with no description — so the sentence "`path` is a Dockerfile or a directory containing one" is genuinely load-bearing, telling the agent that a directory is acceptable and that discovery happens internally. It does not cover relative-vs-absolute resolution or symlink behavior, so not a perfect 5.

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 opens with a specific verb and resource ("Summarize a Dockerfile") and then enumerates exactly what is extracted: stages with base images, layer count, exposed ports, final user, workdir, and ENTRYPOINT/CMD with exec vs shell form. This is enough to distinguish it from lint_dockerfile, explain_layers, and suggest_multistage without opening any 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?

It gives explicit sequencing guidance: "Start here to understand a file before linting it," which positions it relative to lint_dockerfile as a prerequisite step. It does not explicitly say when to prefer explain_layers or suggest_multistage instead, so sibling differentiation is only partially covered.

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