Skip to main content
Glama

service_update

Update a Docker swarm service's configuration or force its tasks to redeploy without changing the spec, to reschedule after node changes or re-pull images.

Instructions

Update a swarm service's configuration, or force a redeploy with no spec change.

Pass exactly one of updates (fields to change, same parameters as service_create) or force=True (the docker service update --force equivalent: bumps the ForceUpdate counter so the service's tasks redeploy with an unchanged spec — e.g. to reschedule after a node change or re-pull a mutable tag).

args: id_or_name - The service id or name updates - Fields to update on the service; exactly one of updates/force force - Redeploy the service without changing its spec; exactly one of updates/force returns: bool - True after the update

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNo
updatesNo
id_or_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations mark readOnlyHint=false and destructiveHint=false, so the description need not restate that this mutates. It adds behavioral detail beyond annotations by explaining that force 'bumps the ForceUpdate counter' and redeploys tasks with an unchanged spec, and it documents the return value.

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 front-loaded with the purpose, then explains the two modes, then provides a compact arg list and return type. The example use cases for force earn their place, making the length appropriate.

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

Completeness5/5

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

The two update modes, the exclusivity constraint, and the simple bool return are all covered; an output schema exists so return details need no further expansion. The only minor gap is unspecified behavior if both updates and force are supplied, but 'exactly one' strongly implies rejection.

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

Parameters5/5

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

With 0% schema description coverage, the description compensates by listing all three args: id_or_name, updates, and force, including the mutually exclusive constraint. It also references service_create for the full set of updatable fields, giving the agent a path to complete parameter understanding.

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

Purpose5/5

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

The description opens with 'Update a swarm service's configuration, or force a redeploy with no spec change,' giving a specific verb and resource. It distinguishes the tool from sibling operations like service_create, service_scale, and service_rollback by stating its two modes.

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

Usage Guidelines4/5

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

It instructs to 'Pass exactly one of updates or force,' clarifying mutually exclusive usage, and gives concrete force use cases (reschedule after node change, re-pull mutable tag). It does not explicitly name alternatives like service_scale, so it falls short of 5.

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/L337-org/docker-mcp'

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