promote_profile
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
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Config branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves. | staging |
| force | No | Override a failing eval gate / prompt-tool guard (audited). Needs confirm=true too. | |
| confirm | No | false (default) = dry run: report what WOULD change and change nothing. true = execute. | |
| profile_id | Yes | Source profile to promote. | |
| target_env | Yes | Environment to promote INTO (prod = what live callers get). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |