Skip to main content
Glama

security_dockerfile_check

Read-only

Dockerfile security & best-practice lint — Static security and best-practice check for a Dockerfile (dockerfile= URL-encoded text, or url= https link to a raw Dockerfile): root user, secrets baked into ENV/ARG, curl-pipe-to-shell, unpinned or latest base images, remote ADD without checksum, sudo, chmod 777, exposed SSH, apt/pip/npm/apk hygiene, shell-form CMD/ENTRYPOINT, missing HEALTHCHECK. Multi-stage aware. Returns findings with line numbers and fixes, score, A-F grade and verdict OK / REVIEW / FIX BEFORE SHIPPING / BLOCK. Offline, no image pull. Price: $0.003 USDC (Base, via x402).

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": {
      "dockerfile": "<dockerfile>"
    },
    "name": "security_dockerfile_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
dockerfileYesFROM node:latest RUN curl -sL https://x.sh | bash CMD node server.js

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/non-destructive; the description goes far beyond them by disclosing multi-stage awareness, the exact return payload (findings with line numbers and fixes, score, A–F grade, verdict scale), and the operational constraints (offline, no image pull). Critically, it also discloses a paid call — $0.003 USDC via x402 on Base — which an agent must know before invoking.

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?

Purpose and input format are front-loaded, and the long middle sentence is a dense but useful inventory of checks rather than filler. It is a single wall-of-text paragraph with parenthetical asides, so scanning suffers slightly, but nearly every clause carries information an agent would act on.

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

Completeness5/5

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

For a one-parameter tool with no output schema, the description covers everything needed: how to supply input, what is checked, the shape of the result (findings, score, grade, verdict), the no-pull/offline behavior, and the cost. Nothing material is left for the agent to guess.

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 100% but the schema description is only a sample Dockerfile, not an explanation. The prose adds real meaning by saying the value is URL-encoded Dockerfile text and by offering a URL alternative. The only flaw is that 'url=' is described as a parameter while the schema exposes a single required 'dockerfile' field, leaving the actual mechanism for URL input ambiguous.

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 and resource — 'Static security and best-practice check for a Dockerfile' — and immediately enumerates the exact defect classes it detects (root user, secrets in ENV/ARG, curl-pipe-to-shell, unpinned base images, etc.). This is unmistakably distinct from the other security_* siblings, which cover CSP, CVE, headers, domains and so on.

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?

It gives input-mode guidance ('dockerfile= URL-encoded text, or url= https link to a raw Dockerfile') and notes 'Offline, no image pull', which implies you do not need to build the image first. However, it never says when to reach for this versus alternatives, and the named 'url=' parameter does not exist in the schema, so an agent following the prose literally could pass an argument the tool rejects.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources