Skip to main content
Glama

clone_stack

Clone a stack from the current cluster to another cluster in the organisation as a stack DRAFT. Nothing is deployed on the target unless deploy_after_clone is set: the result is a saved draft visible on the target cluster's Stacks page. The user must hold ai.execute and stacks.write on the target cluster. Addon configurations are included; encrypted values that cannot be transferred are stripped with warnings, and name conflicts on the target are auto-resolved with suffixes. By default the clone carries CONFIGURATION ONLY and none of the stack's volumes or databases. Set include_data to true to carry the data too: Ankra takes a restore point of the source stack and restores it onto the clone, which additionally needs backups.operate and is refused when the target cluster already has a stack of this name. Review and apply the draft on the target cluster to deploy it.

Input Schema

NameRequiredDescriptionDefault
cluster_idYesAnkra cluster id (UUID) the call targets. Discover ids with list_clusters.
stack_nameYesName of the stack on the current cluster to clone.
include_dataNoCarry the stack's DATA as well as its configuration. Ankra takes a fresh restore point of the source stack and restores it onto the clone, and the result carries the run that does it. Default false, which copies configuration only. Needs the backups.operate permission and a ready backup vault, and is refused when the target cluster already has a stack of this name.
data_selectionNoWhich data the clone carries. Omitting this key is NOT the same as sending an empty object: omit it to take the stack's own backup policy, and send one only to override that policy. A selection is applied WHOLE and never merged, so one that names no persistent_volume_claims carries no volumes.
new_stack_nameNoOptional name for the cloned stack on the target cluster. Defaults to the source name; auto-renamed on conflict.
protect_sourceNoTurn backup protection on for the SOURCE stack when it has none, so the restore point this clone takes is the first of a series rather than a one-off. Default false.
backup_vault_idNoUUID of the backup vault the clone's restore point lives in. Omit to use the stack's own backup policy vault, and then the organisation's only ready vault.
data_clone_modeNoWhere the data comes from when include_data is true. 'fresh' (the default) takes a new restore point of the source stack now. 'latest' restores the newest complete restore point the source already has, reading nothing from the source cluster; anything written since is not in it.
target_cluster_idYesUUID of the cluster to clone the stack to (must differ from the current cluster).
deploy_after_cloneNoDeploy the cloned stack on the target once the clone lands - after the restore when include_data is true. Default false, which leaves a draft to review and apply.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare the safety profile (readOnly=false, idempotent=false, destructive=false). The description goes far beyond: draft-not-deployed default, encrypted values stripped with warnings, name conflicts auto-resolved with suffixes, config-only vs data semantics, and explicit refusal conditions. This is exactly the behavioral disclosure the annotations can't carry.

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?

The purpose and default (draft) are front-loaded, then permissions, then data handling, then the follow-up apply step. Dense but warranted for a 10-parameter mutation; a few clauses could be tightened but nothing is wasted.

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?

For a complex cross-cluster mutation with a nested object and no output schema, the description covers permissions, side effects, data modes, refusal conditions, and the required post-step ('review and apply the draft'). An agent has everything needed to invoke it correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all 10 parameters thoroughly; the description largely restates that content (include_data, deploy_after_clone, data_clone_mode). It adds integration context but little syntax or format detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb+resource+scope: 'Clone a stack from the current cluster to another cluster in the organisation as a stack DRAFT.' This distinguishes it from siblings like create_stack, redeploy_stack and rename_stack without opening any schema.

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?

Gives rich contextual conditions: clone yields a draft unless deploy_after_clone is set, include_data requires backups.operate and is refused on name conflict, and the user must hold ai.execute and stacks.write on the target. It doesn't explicitly name alternative sibling tools, but the when-to-use and when-refused conditions are clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources