Skip to main content
Glama

rebuild_service

Recreate a Docker Compose service from updated source by running docker compose up -d --build <service> with the target container name.

Instructions

Rebuild and recreate a Docker Compose service (runs docker compose up -d --build <service>)

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>"
    },
    "name": "rebuild_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesContainer name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries full burden. It usefully discloses the underlying command, which reveals that the image is rebuilt and the container recreated (implying downtime and loss of container-local state), but it never states downtime, health-wait behavior, or what happens on a nonexistent service.

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?

A single front-loaded sentence with the action first and the exact command as supporting evidence. No filler.

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

Completeness3/5

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

For a one-parameter mutation tool with no annotations and no output schema, the definition says what runs but omits the consequences an agent needs (service downtime, whether it blocks until healthy, failure behavior). Adequate but with clear gaps.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description earns more: by showing `<service>` in a compose command it clarifies that `name` is a Compose service name, resolving the ambiguity with the schema's own wording of 'Container name'.

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?

States a specific verb (rebuild/recreate) and resource (Docker Compose service), and even names the exact command executed (`docker compose up -d --build <service>`). That command distinguishes it in practice from restart_container, though the description never explicitly contrasts the two.

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

Usage Guidelines3/5

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

Usage is only implied via the rendered command: the `--build` flag tells an agent this is for picking up image/config changes, unlike a plain restart. There is no explicit statement of when to prefer this over restart_container or list_services, and no stated preconditions.

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