Skip to main content
Glama

compose_optimize

Optimize Docker Compose YAML for production readiness. Specify a target environment to get tailored improvements.

Instructions

Optimize a Docker Compose file for production readiness (Pro)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNoOptimization target environment
api_keyNoAPI key for authentication
compose_yamlYesYAML content of the Docker Compose file
Behavior2/5

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

With no annotations present, the description carries the full burden of behavioral disclosure. 'Optimize' implies some transformation of the provided compose file, but it does not state whether this is a read-only analysis, whether it returns optimized YAML, or what side effects, if any, occur. The '(Pro)' marker hints at an entitlement requirement but is not explained.

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 with no filler and the core action is front-loaded. Every word serves a purpose, and it is appropriately concise for the level of detail provided.

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?

Given that there is no output schema and no annotations, the description is too sparse to be operationally complete. The agent is not told what the tool returns, what 'optimization' concretely changes, how authentication via api_key relates to the '(Pro)' label, or how this tool should be preferred over related sibling tools.

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?

The schema already covers all three parameters with descriptions, including the target environment enum and the compose_yaml content parameter. The description adds no additional meaning about how target, api_key, or compose_yaml interact with the optimization process, so the baseline 3 is appropriate.

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 states a specific verb ('Optimize') and resource ('Docker Compose file') and names the intended outcome ('production readiness'). It distinguishes itself from obvious sibling tools like compose_generate and compose_add_service, though it does not detail what kinds of optimizations will be applied.

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 guidance is provided for when to use compose_optimize versus alternatives such as compose_generate, compose_add_service, or container_scan_compose. The description gives no context, prerequisites, or exclusions, leaving the agent to infer appropriate usage.

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