Skip to main content
Glama

dockerlean_wasm_audit

Audit Dockerfiles statically for layer bloat, cache invalidation, root user, and missing multi-stage builds, so you can fix container image inefficiencies before build.

Instructions

Audit a Dockerfile statically for layer bloat, cache invalidation, root user, and missing multi-stage build.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dockerfileContentYesContent of the Dockerfile

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that analysis is static rather than a build execution, implying a safe read-only operation, but it says nothing about the return shape, severity model, or whether findings are ranked.

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?

A single dense sentence with the verb-resource pair front-loaded and the checked categories listed after. No filler, nothing to trim.

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

Completeness3/5

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

For a one-parameter audit tool with no output schema and no annotations, the description covers the input and inspection criteria well, but leaves the structure of the audit results (findings, severities, format) entirely unspecified.

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?

There is a single parameter with 100% schema description coverage, so the schema already documents 'dockerfileContent'. The description adds no syntax or format guidance beyond what the schema provides, making the baseline 3 appropriate.

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 (audit), resource (Dockerfile), and scope (statically), then enumerates exactly what it checks: layer bloat, cache invalidation, root user, missing multi-stage build. No sibling tool overlaps this domain, so an agent can route to it unambiguously.

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?

The word 'statically' implies this is for inspecting a Dockerfile without building it, which is useful context, but there is no explicit when-to-use, when-not-to-use, or named alternative. Usage must be inferred from the description.

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