Skip to main content
Glama

cost_optimize_docker

Analyze Dockerfiles to reduce image size and optimize build time. Identify inefficiencies and get actionable recommendations to lower container costs.

Instructions

Analyze Dockerfiles for image size reduction and build time optimization

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNo
dockerfile_pathNoPath to DockerfileDockerfile
Behavior2/5

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

With no annotations provided, the description carries the full behavioral burden. It states that the tool analyzes, but it does not disclose whether it only reads the Dockerfile or also modifies it, what kind of output is returned, or why an api_key is needed. This leaves significant behavioral uncertainty.

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, front-loaded, active sentence with no filler. Every word contributes to the core purpose, making it easy for an agent to parse quickly.

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 no output schema and no annotations, the description should clarify return behavior, side effects, and authentication expectations. It does none of these, and the unexplained api_key parameter creates a notable gap. For a simple-looking analysis tool, more context is needed before an agent can invoke it confidently.

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 coverage is only 50%; dockerfile_path is documented in the schema, but api_key has no description. The tool description adds no parameter-level meaning and does not explain the role of api_key or how dockerfile_path is located or used beyond the schema's minimal note.

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?

The description uses a specific verb ('Analyze') and resource ('Dockerfiles') and names concrete goals ('image size reduction and build time optimization'). It is clear about the tool's function, though it does not explicitly differentiate it from closely related siblings like container_audit_dockerfile or container_optimize_image.

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 intended use is implied: use this when you want to analyze Dockerfiles for image size and build time. However, there is no explicit when-to-use guidance, no mention of alternatives, and no conditions for choosing this tool over similar Docker/cost-related siblings.

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/barnburner121/claude-plugin-marketplace'

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