Skip to main content
Glama

apply_stack_changes

Destructive

Apply the current stack draft to the cluster. This single ship action handles both brand-new database drafts and already-deployed stacks by computing the lifecycle and bill of materials internally. By default, items absent from the draft are preserved unless they were explicitly removed through draft removal tools. For a destructive full replacement that deletes absent items, set replace_missing=true only after confirming the exact deletions with the user.

Input Schema

NameRequiredDescriptionDefault
dry_runNoIf true, return a diff BOM without applying. Used internally during confirmation.
membersNoThe members this apply ships, as "kind:name" strings - for example ["addon:nats"] or ["manifest:namespace", "addon:ingress"]. REQUIRED once the reviewed change set holds more than one resource: the enumeration IS the review, so there is no apply-everything shortcut on this lane, and the refusal lists the members to choose from. Naming an addon covers its configuration. A key the change set does not carry, and a member the draft removes, are both refused by name rather than dropped.
draft_idNoThe draft to apply, as a uuid. It supersedes every other way the draft is resolved - the conversation's binding and the most recently updated draft of that name - and one belonging to another organisation or cluster is refused rather than fallen back from. Omit it to apply the draft this conversation holds for the stack.
cluster_idYesAnkra cluster id (UUID) the call targets. Discover ids with list_clusters.
stack_nameYesREQUIRED: The name of the stack to apply changes to. This is used to find the draft in the database.
expected_digestNoThe change-set digest this apply was reviewed against, which the server recomputes under the cluster lock and refuses on mismatch. Do not invent one: in chat it is stamped from the bill of materials that was shown, and a value supplied here is dropped. Over MCP, send the change_set_digest the stack draft diff reported.
replace_missingNoIf true, perform a full replacement and delete deployed addons/manifests that are absent from the draft. Use only after enumerating the deletions for the user.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description goes beyond them by explaining the actual destructive semantics: the default is non-destructive preservation, deletion of absent items happens only under an explicit opt-in, and removal tracking is done via draft removal tools. That is exactly the operational context an agent needs before firing a destructive ship action.

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?

Four sentences, front-loaded with the core action before the conditional semantics. Each sentence carries informational weight, though the middle two restate the preservation/removal rule from slightly different angles and could be tightened.

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 destructive mutation with no output schema, the description covers the critical gaps: default behavior, the destructive escape hatch and its guardrail, and how the target draft is resolved. Return format is not required since no output schema exists, and annotations carry the safety profile.

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 description coverage is 100%, so the baseline is 3, and the description adds real value on top by framing replace_missing as a destructive mode with a user-confirmation precondition and explaining why draft resolution matters. It does not add meaning for members, draft_id, cluster_id, or expected_digest beyond what the schema already says.

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 and resource: 'Apply the current stack draft to the cluster', then adds scope ('handles both brand-new database drafts and already-deployed stacks by computing the lifecycle and bill of materials internally'). This separates it from plain manifest/applies in spirit, but no sibling tool (e.g. redeploy_stack, apply_manifest, resolve_gitops_conflict) is named, so the distinction is inferred rather than explicit.

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 clear operating conditions: absent items are preserved by default, and replace_missing=true is reserved for a full replacement 'only after confirming the exact deletions with the user'. The destructive opt-in condition is spelled out, though no alternative tools are named for the non-draft path and no prerequisites (permissions, cluster lock) are mentioned.

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