Skip to main content
Glama

compose_generate

Generate a Docker Compose file with service definitions and networking. Supply a project name and service list to produce a ready-to-use compose configuration.

Instructions

Generate a Docker Compose file with service definitions and networking

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNoAPI key for authentication
servicesYesList of service names to include
project_nameYesName of the project
compose_versionNoCompose file version (default 3.9)
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure — and it fails to meet it. It never states whether the resulting file is written to disk or returned as a string, whether existing files get overwritten, or why an api_key is required at all for generating a compose file, which is a surprising parameter that deserves explanation.

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 zero filler — the verb and resource appear immediately. It's efficient without being so sparse that it becomes a tautology.

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 tool with four parameters, a perplexing required api_key, no output schema, and no annotations, the one-sentence description leaves too much to inference: output format, filesystem side effects, authentication necessity, and its relationship to compose_add_service/compose_optimize. An agent cannot reliably predict what will happen when it invokes this tool.

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%, so the baseline is 3; each parameter is already self-explanatory in the schema. The description adds only a marginal hint that the output will include networking, which isn't explicitly represented among the parameters, and does no further semantic heavy lifting.

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 and resource — 'Generate a Docker Compose file' — and adds a scope qualifier, 'with service definitions and networking.' This makes the tool's function immediately understandable, though it doesn't explicitly contrast with closely related siblings like compose_add_service and compose_optimize.

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 given on when to use this tool versus alternatives. With multiple compose-related siblings (compose_add_service, compose_optimize, container_scan_compose), an agent receives no routing help and must infer for itself whether to generate a new file or extend an existing one.

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