Skip to main content
Glama

Create service

docker_create_service

Creates a Docker service from a name and image, letting you configure ports, mounts, replicas, and context to deploy containerized workloads.

Instructions

Invoke the create_service operation.

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": {
      "name": "<name>",
      "image": "<image>"
    },
    "name": "docker_create_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
imageYes
portsNo
mountsNo
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
replicasNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

D1.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the safety profile is covered by structured data. The description adds nothing on top: no statement about what happens on name collision, whether the operation is idempotent, or that it targets a Docker context — all of which would be valuable here.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence contains no wasted words, but that is because it contains almost no information at all. This is under-specification rather than conciseness; the one line earns its place only as a placeholder.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a creation tool with six parameters, a required name/image pair, and no output schema, the description should carry real weight. Instead it provides nothing about behavior, defaults, context selection, or the shape of a successful response, so an agent cannot call this correctly from the definition alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 17% across 6 parameters, and the description supplies no parameter meaning whatsoever. It does not explain the required name/image pair, the format of ports or mounts, or what replicas=1 implies as a default, leaving most parameters undocumented in both places.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Invoke the create_service operation" merely restates the tool name and title in different words; it names no resource specifics, no scope, and no distinguishing characteristic from siblings such as docker_service_create or podman_create_service. An agent learns nothing about what is actually created beyond the bare word "service."

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives. With several near-identical siblings (docker_service_create, podman_create_service, k8s_create_service), the description offers no basis for choosing this tool over another.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools