Skip to main content
Glama

generate_dockerfile

Generate optimized multi-stage Dockerfile for any stack

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": {
      "service": "<service>",
      "runtime": "<runtime>"
    },
    "name": "generate_dockerfile"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoExposed port
runtimeYesRuntime
serviceYesService name
withHealthCheckNoAdd HEALTHCHECK instruction
baseImageVersionNoBase image version override (e.g. '20' for Node, '3.12' for Python)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It claims 'optimized multi-stage' output but never says whether the result is returned as text or written to disk, whether an existing Dockerfile is overwritten, or whether generation is deterministic. For a code-emitting tool with zero annotation coverage, these are material gaps.

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?

A single front-loaded sentence with no filler words; the artifact and its key property appear immediately. It is efficient, though its brevity is more under-specification than disciplined concision.

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?

With five parameters, two required, no output schema and no annotations, the definition should at minimum say what is returned and whether files are written. Neither is addressed, leaving the agent unable to predict the side effects or the response shape of an otherwise simple generator call.

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% — every parameter including the runtime enum and the baseImageVersion example is documented in the schema. The description adds no additional meaning beyond 'for any stack', 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 — 'Generate ... Dockerfile' — plus the qualifier 'optimized multi-stage', so the agent knows exactly what artifact is produced. It does not differentiate from any named alternative, but the resource itself (Dockerfile) is distinctive enough among the sibling generators to be unambiguous.

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?

The only scoping phrase is 'for any stack', which broadens rather than guides. There is no statement of when to use this versus hand-writing a Dockerfile or another generator, no prerequisites (e.g. that a runtime must be chosen), and no indication of what happens if a Dockerfile already exists.

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.