Adopt stack profile
adopt_stack_profileRecord a stack a cluster already runs as a deployment of a stack profile, without changing the cluster (the twin of ankra stack-profiles adopt), so the profile's fleet view and rollouts include it. The answer reports drift: only_on_cluster lists the members a rollout of the version would remove. Requires stacks.write on the cluster.
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": {
"target_cluster_id": "<target_cluster_id>",
"stack_name": "<stack_name>"
},
"name": "adopt_stack_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | The version the stack corresponds to; defaults to the current version. | |
| parameters | No | Input values as {name, value}. A secret input takes a ${SECRET_SLOT:<id>} reference, never a literal secret. | |
| profile_id | No | The stack profile id (UUID) from list_stack_profiles. Give this or profile_name. | |
| stack_name | Yes | The stack's name on that cluster. | |
| profile_name | No | The stack profile's exact name, instead of profile_id. | |
| target_cluster_id | Yes | The id of the cluster running the stack. |