Skip to main content
Glama
fredericsuretat

Docker Forge MCP

generate_dockerfile

Generate a security-hardened multi-stage Dockerfile for Node.js, Python, or Go applications. Supports Next.js standalone, Express, FastAPI, Django, and custom runtimes.

Instructions

[PRO] Generate an optimized, security-hardened multi-stage Dockerfile. Supports Node.js (including Next.js standalone), Python (FastAPI/Django), and Go. Features: multi-stage builds, non-root user, minimal final image, HEALTHCHECK.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNoPort the app listens on (default: 3000)
runtimeYesRuntime/language for the Dockerfile
versionNoRuntime version (e.g. "20" for Node.js, "3.12" for Python, "1.22" for Go)
app_typeNoApp type hint: "nextjs" for Next.js standalone, "express" for generic Node, etc.
package_managerNoPackage manager for Node.js projects (default: npm)npm
Behavior3/5

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

No annotations provided, so the description carries the burden. It discloses features like multi-stage builds, non-root user, minimal image, and HEALTHCHECK, which are positive behavioral traits. However, it does not specify whether the tool writes to a file or returns text, nor does it mention side effects or permissions needed.

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?

The description is a single sentence that includes a '[PRO]' prefix for intended audience, lists the core purpose, supported technologies, and key features. Every part is meaningful and there is no redundant content. It is compact and front-loaded.

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?

Given five parameters (all described in schema) and no output schema, the description is moderately complete. It covers supported runtimes and app types, but lacks information about the output format (e.g., returns text, saves to file), error handling, or any prerequisites. For a generation tool, these would be helpful for agents.

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%, so baseline is 3. The description adds context by mentioning supported runtimes and app types (Next.js standalone, FastAPI/Django), which aligns with the 'runtime' and 'app_type' parameters. However, it does not provide additional syntax or format details beyond what the schema already offers.

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?

The description clearly states the verb 'Generate' and the resource 'optimized, security-hardened multi-stage Dockerfile'. It lists supported runtimes (Node.js, Python, Go) and specific app types (Next.js, FastAPI/Django), distinguishing it from sibling tools like add_traefik or audit_compose which serve different purposes.

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?

The description does not explicitly state when to use this tool versus alternatives. It implies usage for generating Dockerfiles for Node.js, Python, or Go projects, but lacks guidance on when not to use it or when to prefer a sibling tool. The features are listed but no direct comparison.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fredericsuretat/docker-forge-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server