Skip to main content
Glama

instantiate_stack_profile

Create a stack DRAFT from a stack profile - on the current cluster, or on another cluster in this organisation via target_cluster_id (the 'move this stack to cluster X' flow: snapshot with create_stack_profile, then instantiate on the target). Nothing is deployed: the result is a saved draft visible on that cluster's Stacks page. A cross-cluster target requires the user to hold ai.execute and stacks.write on the target cluster, and the target must be confirmed with the user before calling (list_clusters shows the candidates). Required parameters (from get_stack_profile) must be provided as name/value pairs. For secret-type parameters, NEVER pass or ask for a raw secret value - pass a ${SECRET_SLOT:} sentinel from the user's slot catalog; the sentinel is stored at the declared encrypted path in the draft and resolved from Vault only when the stack deploys, so the value never appears in the draft or this chat. A missing or expired slot fails the call. If the user has no slot, tell them to instantiate from the portal where the value can be entered securely. Raw secret-looking values are rejected. After instantiating on the current cluster, load the draft with load_draft_from_database to review or edit it, and only deploy via apply_stack_changes when the user asks. A cross-cluster draft is reviewed and applied on the target cluster - this session cannot deploy there.

Input Schema

NameRequiredDescriptionDefault
versionNoProfile version to instantiate. Defaults to the profile's current version (the pinned version, which can be older than latest after a rollback).
cluster_idYesAnkra cluster id (UUID) the call targets. Discover ids with list_clusters.
parametersNoValues for the profile's parameters. Required parameters must all be provided.
profile_idNoUUID of the profile to instantiate. Alternative to profile_name.
profile_nameNoName of the profile to instantiate. Alternative to profile_id.
new_stack_nameNoName for the new stack. Defaults to the profile's stack name; auto-renamed on conflict.
target_cluster_idNoOptional UUID of another cluster in the organisation to create the draft on. Defaults to the current cluster. Requires ai.execute and stacks.write on the target cluster.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag a non-read-only, non-idempotent, non-destructive mutation, and the description adds rich context beyond that: nothing is deployed, cross-cluster targets require ai.execute and stacks.write, user confirmation is mandatory, missing/expired slots fail the call, and raw secret-looking values are rejected. The secret-sentinel resolution-at-deploy behavior is exactly the kind of hidden trait this dimension rewards.

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 action and its non-deploying nature are front-loaded, then permissions, secret handling, and follow-up steps follow in a logical order. It is dense and long, but nearly every sentence carries operational information an agent needs, so the length is largely justified.

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 7-parameter mutation tool with no output schema, the description covers what is created, where it lands, permission and confirmation prerequisites, secret handling, failure modes, and the exact next tools for review and deploy. An agent has everything needed to call it correctly and safely.

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 adds real meaning: parameters must be supplied as name/value pairs sourced from get_stack_profile, and secret-type parameters must use a ${SECRET_SLOT:<slot-id>} sentinel rather than raw values. The one gap is that it never clarifies the relationship between the required cluster_id and the optional target_cluster_id, which the schema leaves ambiguous.

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?

The description opens with a specific verb+resource: 'Create a stack DRAFT from a stack profile,' and immediately delimits scope ('Nothing is deployed: the result is a saved draft'). It clearly separates itself from siblings like create_stack_profile, create_stack_profile_draft, and apply_stack_changes by naming the deploy step as a different tool.

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

Usage Guidelines5/5

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

It spells out the when-to-use flows explicitly: current-cluster draft vs the cross-cluster 'move this stack to cluster X' flow, with the alternative create_stack_profile call named as the preceding snapshot step. It also states the required confirmation step, points to list_clusters for candidates, and routes post-instantiation work to load_draft_from_database / apply_stack_changes only on user request.

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