Skip to main content
Glama

Dockerfile security & layer-hygiene linter ($0.01)

dockerfile_lint
Idempotent

[Paid x402 / X-Bazaar-Key: 0.01 USDC] Lint Dockerfile settings (pinned non-latest base image tag, slim/distroless image, non-root USER, pip --no-cache-dir).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dockerfile_lint"
  }
}

Input Schema

NameRequiredDescriptionDefault
base_imageNoContainer base image tag

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior4/5

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

With annotations present, the description adds genuinely useful behavior beyond them: it discloses the paid x402 / X-Bazaar-Key mechanism and the $0.01 USDC cost, which explains why readOnlyHint is false for a lint operation. It does not contradict the annotations, though it says nothing about returned findings or error/payment-failure behavior.

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?

One front-loaded sentence with the cost/auth prefix first and the concrete rule list second; no filler. The bracketed payment tag is functional rather than decorative.

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?

No output schema exists, so the description should say what a lint run returns (pass/fail per rule, findings list), and it should resolve the Dockerfile-vs-base_image input ambiguity. Cost and scope are covered, but knowing whether the call is invocable as described is not.

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 coverage is 100%, but the single parameter is 'base_image' while the description lists checks (non-root USER, pip --no-cache-dir) that cannot be derived from a base image tag alone, and additionalProperties is true. The description never clarifies what base_image denotes or how the other linted settings are supplied, leaving a real semantic gap the schema does not close.

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 gives a specific verb ('Lint') plus the resource ('Dockerfile settings') and enumerates the exact rules checked (non-latest base tag, slim/distroless, non-root USER, pip --no-cache-dir), which separates it from sibling linters like fly_toml_lint or openapi_tool_lint. It stops short of naming an alternative outright, but an agent can identify the target artifact unambiguously.

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 explicit when-to-use/when-not guidance, no prerequisites, and no mention of how to actually supply a Dockerfile versus just a base image. Usage is only inferable from the tool name and the bracketed payment note.

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