Skip to main content
Glama
GWShield Image Builder

GWShield Image Builder

Official
by gwshield

validate_dockerfile

Validates a Dockerfile against 15 GWShield hardening pillars, optionally using an expected image family to catch family-specific container security issues.

Instructions

Validate a Dockerfile against the 15 GWShield hardening pillars

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

Input Schema

NameRequiredDescriptionDefault
familyNoExpected image family (helps with family-specific checks)
dockerfileYesThe Dockerfile content to validate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does not state that this is a read-only/non-mutating check, what form the result takes (pass/fail, per-pillar violations), or whether validation is deterministic or exhaustive.

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 front-loaded sentence with no filler. The scope and standard are stated immediately with zero waste.

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

Completeness2/5

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

For a validation tool with no annotations and no output schema, the description should indicate what a validation result contains and how failures are reported. It leaves the agent guessing about the return shape and the meaning of the pillar count, which is a meaningful gap for the tool's core purpose.

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 description coverage is 100%, so both parameters are already documented in the schema, including the family enum. The description adds nothing beyond that, so the baseline 3 applies.

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?

States a specific verb and resource ('Validate a Dockerfile') plus the standard it checks against ('15 GWShield hardening pillars'). This is clearly distinguishable from the generate_* and list_pillars siblings, though the 'GWShield pillars' reference is undefined jargon an agent may not recognize.

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?

No when-to-use guidance, no when-not-to-use, and no mention of alternatives. It never says whether to call list_pillars first, or when the optional family argument should be supplied versus omitted.

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