Skip to main content
Glama

Translate Dockerfile

translate_dockerfile
Read-onlyIdempotent

Statically parse a single- or multi-stage Dockerfile or shell install command, map packages to a target container distribution, and suggest multi-stage build-time slimming. Commands are never executed.

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": {
      "input": "<input>",
      "target_distro": "<target_distro>"
    },
    "name": "translate_dockerfile"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYes
stage_indexNo
source_distroNo
target_distroYes
source_releaseNo
target_releaseNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, and the line 'Commands are never executed' reinforces that safety profile in plain language. Beyond that the description says nothing about the mapping behavior, whether external distro data is consulted (relevant given openWorldHint), failure modes, or the 16 KB input ceiling.

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 dense sentence with the action front-loaded and no filler; every clause (parse, map, suggest, never executes) adds information. Slightly long as a single sentence, but nothing is wasted.

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 six-parameter tool with no output schema and zero schema description coverage, the definition is thin: it does not say what a translation result contains, how source/target release pairs are validated, or what stage_index selects. An agent would have to guess at most parameter meanings before calling it.

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 description coverage is 0% across six parameters, so the description must carry the burden and it largely does not. 'single- or multi-stage' weakly hints at stage_index, and the mention of a 'target container distribution' touches target_distro, but source_distro, source_release, target_release, and the shape of input are left entirely undefined.

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?

Specific verbs and resources: statically parse a Dockerfile or shell install command, map packages to a target distro, suggest multi-stage slimming. It is clear what the tool does. It does not, however, distinguish itself from plausible siblings like resolve_install, explain_command, or lint_command, so an agent must infer the boundary.

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?

Scope is implied by the description (Dockerfiles and shell install commands, cross-distro mapping, slimming advice), but there is no explicit when-to-use or when-not-to-use statement and no named alternative for overlapping tasks such as install resolution or command explanation.

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