Skip to main content
Glama

promote_in_pipeline

Promote items across Fabric Deployment Pipeline stages, from dev to test or prod, and run pre-promotion quality gates before moving them. Validate stages with a dry run before promoting live artifacts.

Instructions

Promote artifacts across Microsoft Fabric Deployment Pipeline stages.

Use this tool when the user asks to:

  • Promote or move items between Fabric deployment stages (e.g. dev to test, test to prod).

  • Run pre-promotion quality gates before moving items.

Args: pipeline_id: Fabric deployment pipeline ID (UUID). source_stage: Source stage ("dev", "test", "prod"). target_stage: Target stage ("test", "prod"). items: Optional list of specific item IDs to promote. Promotes all if omitted. quality_gates_json: Optional list/JSON of quality gates to run before promotion. pbip_path: Optional PBIP directory for audit quality gate. baseline_path: Optional DAX regression baseline JSON for regression quality gate. auth_mode: Optional auth mode ("interactive", "service_principal", "managed_identity"). tenant_id: Optional Azure AD tenant ID. client_id: Optional Azure AD client ID. dry_run: If True (DEFAULT), validate stages and gate checks without triggering actual promotion. Pass dry_run=False explicitly to promote for real — this moves live artifacts between stages. fabric_client: Optional injected bridge/client (for testing).

Returns: Dict with promotion status, gate outcomes, and affected items.

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": {
      "pipeline_id": "<pipeline_id>"
    },
    "name": "promote_in_pipeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsNo
dry_runNo
auth_modeNo
client_idNo
pbip_pathNo
tenant_idNo
pipeline_idYes
source_stageNodev
target_stageNotest
baseline_pathNo
fabric_clientNo
quality_gates_jsonNo[]

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv1.25.1
    • addedInput schema / properties / auth_mode
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Auth Mode"
      +}
    • addedInput schema / properties / baseline_path
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Baseline Path"
      +}
    • addedInput schema / properties / client_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Client Id"
      +}
    • addedInput schema / properties / fabric_client
      Added value: +{
      +  "default": null,
      +  "title": "Fabric Client"
      +}
    • addedInput schema / properties / pbip_path
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Pbip Path"
      +}
    • addedInput schema / properties / quality_gates_json
      Added value: +{
      +  "default": "[]",
      +  "title": "Quality Gates Json"
      +}
    • addedInput schema / properties / tenant_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Tenant Id"
      +}
  2. Changed1 schema field changedv1.18.0
    • changedInput schema / properties / dry_run / default
      Previous value: -falseNew value: +true
  3. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the safety burden and does so well: it discloses that dry_run defaults to True and that passing False 'moves live artifacts between stages'. It also lists supported auth modes. It omits prerequisites (permissions/roles needed), failure behavior mid-promotion, and whether a real promotion is reversible, which prevents a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in one sentence, then usage triggers, then a complete Args list; for a 12-parameter tool the structured breakdown is the efficient choice. Nothing is redundant, and the dry_run warning is given visual prominence at the point of the parameter.

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?

Given 12 parameters, zero annotation coverage, and a live-mutation risk, the description covers purpose, triggers, every parameter, and the dry-run safety default; an output schema exists so return detail is rightly left brief. What is missing is operational context: required Fabric permissions, behavior on partial gate failure, and rollback expectations.

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 0%, so the description must compensate, and it documents essentially all 12 parameters with meaning beyond their titles, including allowed values for source_stage, target_stage, and auth_mode that the schema lacks as enums. Remaining entries (tenant_id, client_id, fabric_client) are terse and add little beyond their names.

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: 'Promote artifacts across Microsoft Fabric Deployment Pipeline stages', and reinforces it with concrete stage examples (dev to test, test to prod). It does not differentiate against plausible siblings such as deploy_to_workspace or pre_deploy_check, so it stops short of a 5.

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?

Explicitly frames usage as 'Use this tool when the user asks to:' with two concrete triggers, including running pre-promotion quality gates. There is no when-not-to-use guidance or named alternative for pure pre-flight validation, which keeps it below 5.

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