Skip to main content
Glama

Agent Data Tools: Company, compliance and checks

Lint a Dockerfile for security and size issues: check a Dockerfile for security problems and image size issues

dockerfile_lint
Read-only

Check a Dockerfile (up to 8,000 characters) for common security and image-size problems: unpinned or :latest base images, running as root, piping downloads into a shell, sensitive values baked into ENV or ARG, ADD from URLs, apt and pip cache left in layers, sudo, chmod 777 and an exposed SSH port. Returns each finding with its line, a severity and a fix, plus a score. Use before building or shipping an image. Example: dockerfile=FROM node:latest COPY . /app CMD node /app/server.js. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": "dockerfile_lint"
  }
}

Input Schema

NameRequiredDescriptionDefault
dockerfileYesDockerfile contents (up to 8,000 characters)

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 declare readOnlyHint=true and idempotentHint=false; the description explains both in plain terms ('Reads or computes only and changes nothing; each call is charged, so repeats are not free'), which is exactly the non-obvious retry-cost implication an agent needs. It also discloses the input ceiling, the billing mechanism (x402 USDC or card key via /credits, first 10 free, failed calls free) and the shape of results (per-finding line, severity, fix, plus a score) — auth, cost and output context that annotations cannot carry.

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?

Front-loads what is checked, then follows with the use case, an example, and commercial terms. The long comma-separated checklist is dense but scannable, though the pricing sentence sits mid-paragraph where it slightly interrupts the tool-semantics flow.

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?

With no output schema, the description correctly supplies the return shape (findings with line, severity, fix, plus an overall score), notes the size ceiling, and covers the non-obvious cost/retry behavior for a billed read-only tool. Nothing an agent needs to call this correctly is missing.

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?

Schema coverage is 100% for the single required parameter, so the schema already documents 'dockerfile' and its 8,000-character limit. The description largely restates that limit; its only added value is the embedded example making clear the argument is raw file contents rather than a path. Baseline 3 applies.

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?

Opens with a specific verb+resource ('Check a Dockerfile') and immediately enumerates the exact classes of problems detected (unpinned/:latest bases, root user, piping downloads to a shell, secrets in ENV/ARG, ADD from URLs, left-over apt/pip caches, sudo, chmod 777, exposed SSH port). Nothing in the sibling list overlaps with Dockerfile linting, and the enumerated checks let an agent confirm relevance without opening the 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?

'Use before building or shipping an image' gives a clear trigger context, and the worked example anchors the expected input. It stops short of stating when NOT to use it or naming an alternative, but no sibling in the catalog plausibly competes, so the missing exclusion is low-cost.

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