Skip to main content
Glama

cfg_promote

Copy a config record version or every tagged record from one environment to another through the target's commit path, preserving target-specific fields and recording provenance; preview with dry_run.

Instructions

Copy a record's version (or every record with a tag) from one env to another through the target's normal commit/add path. promote_ignore, ignored and secret fields keep the target's values; the target history records where the version came from. Preview with dry_run first.

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": {
      "from_env": "<from_env>",
      "to_env": "<to_env>",
      "message": "<message>"
    },
    "name": "cfg_promote"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoSource version: =live (default; refused with source_drifted if the source was changed outside cfgit), =HEAD, @<seq>, tag:<name>, or an oid prefix.=live
tagNoPromote every record carrying this tag in the source env (preflighted batch).
authorNoAuthor attribution hint. Ignored/rejected in authenticated/enforced identity modes where a verified identity is required.
recordNoRecord address as collection:id. Omit when promoting a tag.
to_envYesTarget environment to write to, e.g. prod. Its identity, permissions and validation apply.
dry_runNoReturn the field-level diff against the target and the impact, without writing.
messageYesWhy you are promoting (stored in the target's history).
from_envYesSource environment to copy from, e.g. dev.
config_fileNoOmit: the server uses the .cfg.toml it started with. A different path is refused unless the server runs with CFGIT_MCP_ALLOW_CONFIG_OVERRIDE=1.
no_validateNoSkip the collection validator for an emergency write (recorded in history). Off by default.
allow_secretNoAllow committing values that match secret-deny rules (logged). Off by default.
allow_type_changeNoAllow replacing a live datetime/decimal/ObjectId with a different type (logged). Off by default.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.5

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does notable work: it discloses that promote_ignore/ignored/secret fields retain the target's values, that target history records provenance, and that the default ref can be refused with source_drifted. It leaves out atomicity of tag batches, what a partial failure leaves behind, and what permissions the target env enforces, which are the main remaining behavioral gaps for a multi-write operation.

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?

Three compact sentences with the scope declared first and the safety instruction last, so the agent sees the operation before the caveats. No filler, though the parenthetical and 'through the target's normal commit/add path' clause pack several ideas into one sentence and take a second read.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The output schema covers return values and the 12 parameters are fully described, so the description does not need to restate them. Still, for a cross-environment mutation with no annotations, the definition should say whether a tag promotion is all-or-nothing and what identity/authorization the target requires at call time rather than pointing at 'the target's normal commit/add path.'

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 earns above that by clarifying the ref/record/tag interplay ('a record's version (or every record with a tag)') and by introducing the promote_ignore/secret field-preservation rules that appear nowhere in the schema. Those rules tell the agent what a promotion will not overwrite, which the parameter list alone does not convey.

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+resource+scope: 'Copy a record's version (or every record with a tag) from one env to another.' The parenthetical covers both operating modes, and 'through the target's normal commit/add path' signals how it differs from a raw write. It stops short of naming a sibling, so an agent must infer the boundary with cfg_commit or cfg_bulk_commit.

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

Usage Guidelines3/5

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

Gives one explicit workflow rule, 'Preview with dry_run first,' which is genuinely actionable sequencing. However, there is no statement of when to promote versus committing directly, no preconditions for the target env, and no named alternative tool. Usage is implied through the source/target framing rather than spelled out.

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