compose_add_service
Add a new service definition to an existing Docker Compose file by specifying image, ports, dependencies, and API key. Configure services without manually editing YAML.
Instructions
Add a new service definition to an existing Docker Compose file
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": {
"service_name": "<service_name>",
"image": "<image>"
},
"name": "compose_add_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Docker image for the service | |
| ports | No | Port mappings (e.g. ['8080:80']) | |
| api_key | No | API key for authentication | |
| depends_on | No | Service dependencies | |
| service_name | Yes | Name of the service to add |