Skip to main content
Glama

cfg_adopt

Accept out-of-band live changes by recording current live docs as new versions for one record or all records; preview with dry-run before writing.

Instructions

Accept an out-of-band live change: record the current live doc as a new version (record or all_records). Inspect it first with cfg_diff(a="=HEAD", b="=live"). To throw the change away instead, use cfg_restore(record, ref="=HEAD", discard_drift=true).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cfg_adopt"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoEnvironment name from .cfg.toml (e.g. dev, prod). Selects the target database.dev
authorNoAuthor attribution hint. Ignored/rejected in authenticated/enforced identity modes where a verified identity is required.
recordNoRecord address as collection:id, e.g. agent_configs:refund_resolution.
dry_runNoPreview: each drifted record's change from =HEAD to =live (state would_adopt). Writes nothing.
messageNoWhy you are accepting this change (stored in history).adopt drift
all_recordsNoAdopt drift for every tracked record instead of a single one.
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.
allow_secretNoAllow committing values that match secret-deny rules (logged). Off by default.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.5

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose the core mutation: the live doc becomes a new version, i.e. a write to history. It also supplies the recommended inspection step before committing. It does not state what happens when there is no drift, whether the adopted version is revertible, or any permission/identity constraints beyond what the schema mentions.

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?

Three tight sentences with the action front-loaded, followed by the prerequisite inspection and the inverse operation. Every sentence earns its place and nothing is repeated.

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?

An output schema exists, so return values need no explanation, and the schema fully covers parameters. The description covers the workflow and the inverse path, but is silent on edge cases such as no-drift records and on how author identity interacts with the adopt operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all eight parameters are already documented in the schema, which sets the baseline at 3. The description only echoes the record/all_records distinction, adding no format or defaulting nuance beyond 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?

States a specific verb and resource: accept an out-of-band live change by recording the current live doc as a new version. It immediately scopes the operation to a single record or all_records, and it is clearly distinguishable from cfg_diff (inspect) and cfg_restore (discard).

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?

Gives explicit routing: inspect first with cfg_diff(a="=HEAD", b="=live"), and if the intent is the opposite, use cfg_restore(record, ref="=HEAD", discard_drift=true). Both the when-to-use and the when-not-to-use alternative are named with concrete arguments.

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