Skip to main content
Glama

promote_profile

Destructive

Promotes an AI profile into staging or production: preview changes by default, pass the eval gate, then confirm to apply cross-environment updates.

Instructions

Promote a profile to target_env (staging|prod): eval-gate check, cross-env write, compile-on-promote snapshot.

DRY-RUN BY DEFAULT. Without confirm=true nothing is written: you get
{"confirmed": false, "would": ..., "preview": {changes, eval_gate,
prompt_tool_mismatch, blockers}} — a plain list of what the promote
would change in target_env (model, prompt versions, tools, KB, MCP
attachments, sub-agents; or "creates a NEW profile"), and what would
block it. Re-call with confirm=true to apply.

With confirm=true: a failing eval gate comes back as {error:
eval_gate_failed, score, threshold, hint} — fix and re-run evals, or
re-call with force=true AND confirm=true (audited override).

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": {
      "profile_id": "<profile_id>",
      "target_env": "<target_env>"
    },
    "name": "promote_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoConfig branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves.staging
forceNoOverride a failing eval gate / prompt-tool guard (audited). Needs confirm=true too.
confirmNofalse (default) = dry run: report what WOULD change and change nothing. true = execute.
profile_idYesSource profile to promote.
target_envYesEnvironment to promote INTO (prod = what live callers get).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare destructiveHint=true; the description goes substantially beyond that by disclosing the dry-run default, the exact preview payload contents (model, prompt versions, tools, KB, MCP attachments, sub-agents, or "creates a NEW profile"), and the audited override path. It also specifies the eval-gate failure response shape, including score, threshold, and hint.

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 is front-loaded and the DRY-RUN BY DEFAULT line is prominent, so the critical behavior is found immediately. The embedded JSON response excerpts are verbose but each carries concrete information; there is little filler, though the prose could be tightened around the preview field enumeration.

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, cross-environment mutation with an eval gate, the description covers the safety model, the preview contents, the failure mode, and the escape hatch. With an output schema and destructiveHint already present, nothing an agent needs before invoking it is missing.

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; the description earns above that by explaining the runtime effect of confirm (dry-run vs execute) and the coupling between force and confirm ("force=true AND confirm=true (audited override)"). It does not clarify the relationship between the env and target_env parameters, which would have resolved the only real ambiguity in the schema.

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 opening line states a specific verb and resource ("Promote a profile to target_env (staging|prod)") and adds the two distinguishing mechanics — eval-gate check and cross-env write — that separate it from siblings like fork_profile, update_profile, or diff_profiles. An agent can identify the operation without opening the 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?

It gives clear operational guidance: dry-run is the default, re-call with confirm=true to apply, and force=true only alongside confirm=true when an eval gate fails. It does not explicitly contrast against alternatives such as fork_profile or diff_profiles, which keeps it below a 5, but the when-to-call flow is unambiguous.

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