Skip to main content
Glama

Prepare Compose project adoption

prepare_application_compose_adoption
Idempotent

Prepare and poll a read-only takeover candidate for an exact unmanaged Compose project, verifying container, image, restart, and volume safety without stopping or replacing containers.

Instructions

Prepare and poll a short-lived, read-only takeover candidate for one exact unmanaged Compose project from a fresh discovery. The worker verifies container identity, immutable image identity, restart policy, Compose safety, and exclusive local named-volume ownership. Returns only a scrubbed Compose file, variable names, and bounded counts; never variable values, source paths, commands, or unrestricted labels. This tool does not stop or replace containers. Requires applications:manage.

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": {
      "orderNo": "<orderNo>",
      "discovery_id": "<discovery_id>",
      "compose_project": "<compose_project>"
    },
    "name": "prepare_application_compose_adoption"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderNoYesTenant-owned service order number: 1-64 ASCII letters, digits or hyphens, e.g. VP12345 or VP12345-1
discovery_idYesFresh discovery UUID returned by discover_service_containers
compose_projectYesExact unmanaged Compose project label returned by discovery

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.3.21
    • addedInput schema / properties / discovery_id / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
  2. First observedv2.3.16

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations, it discloses what the worker verifies (container identity, immutable image identity, restart policy, Compose safety, exclusive volume ownership), that the candidate is short-lived, and explicitly what is never returned (variable values, source paths, commands, unrestricted labels). That is real added context. The one soft spot is "read-only" describing the candidate while readOnlyHint is false; it is defensible as scope-of-effect wording, but it could read as friction against the annotation.

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?

Three front-loaded sentences, each carrying content: action, verification/return envelope, then the safety and permission boundary. Every clause earns its place, though the dense list-in-a-sentence style and the unexplained "poll" mechanism cost a little readability.

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

Completeness4/5

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

With no output schema, the description does carry the return envelope (scrubbed Compose file, variable names, bounded counts) and the safety boundary, which is what an agent needs before calling. It omits how the polling part works and what handle is returned for the follow-up get/confirm call, which would matter for a multi-step adoption flow.

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; the description nonetheless adds meaning the schema does not, notably that discovery_id must be fresh and that compose_project must be the exact unmanaged project from that discovery. Order number semantics are left entirely to the schema.

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 names a specific verb chain and resource: prepare and poll a short-lived takeover candidate for one exact unmanaged Compose project. It scopes tightly ("from a fresh discovery", "one exact"), which separates it from the confirm/get siblings in behavior, but it never names those siblings or the subsequent step, so the distinction is inferred rather than stated.

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 gives a clear precondition (the discovery_id must come from a fresh discovery) and an authorization requirement (applications:manage), plus an implicit scope exclusion in "does not stop or replace containers". It stops short of stating when not to call it or which sibling to call after preparing, so an agent must guess the adopt/confirm sequence from sibling names alone.

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