Skip to main content
Glama

cfg_import

Starts tracking live records or restores documents from an export artifact through a drift-guarded bulk commit; use dry_run to preview changes without writing.

Instructions

Start tracking live records (record or all_records), or restore documents from a cfg_export artifact via from_export (writes them back through the drift-guarded bulk-commit path). dry_run=true previews either form (would_import / per-record delta) without writing.

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_import"
  }
}

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 the change and return the would-be result without writing anything.
messageNoHuman-readable commit/operation message.initial import
all_recordsNoImport every configured collection instead of a single record.
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.
from_exportNoA cfg_export artifact (dict or list) to restore documents from, via the drift-guarded bulk path.
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, e.g. an ISO string (logged). Off by default; send dates as {"$date": ...} instead.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.5

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose meaningful traits: writes go through the 'drift-guarded bulk-commit path', and dry_run yields would_import / per-record delta without writing. It does not say whether restoring an export overwrites or merges existing live documents, nor does it hint at the opt-in escape hatches (no_validate, allow_secret, allow_type_change) that change risk posture. For an 11-parameter mutation tool with zero annotation coverage, that is a significant remaining gap.

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 sentences, zero waste, and the two modes plus the preview option are front-loaded so the agent learns the shape of the call immediately. Parenthetical clarifications are short and load-bearing rather than decorative.

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 an output schema exists and all 11 parameters are fully described in the schema, the description need not restate return values or per-parameter rules. It correctly covers the two invocation modes and the preview path. The missing piece is mutation semantics against existing records and the boundary with sibling write tools.

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 the baseline is 3. The description reinforces the semantics of the three mode-defining parameters (record, all_records, from_export) and dry_run, which helps an agent choose among them. It adds nothing about the risk-modifier flags or their interactions, which the schema already documents anyway.

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?

The description names two concrete modes with their selecting parameters: 'Start tracking live records (record or all_records)' and 'restore documents from a cfg_export artifact via from_export'. That is a specific verb+resource pairing an agent can act on, and it implicitly separates the tool from cfg_export (the artifact producer). It stops short of explicitly contrasting with nearby writers like cfg_adopt, cfg_restore, or cfg_bulk_commit, so the differentiation is incomplete.

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?

Usage is stated conditionally and clearly: choose record or all_records to begin tracking, or pass from_export to restore, and use dry_run=true to preview either form. That covers when to use which of its own modes. What it lacks is explicit routing against sibling tools — nothing tells the agent when cfg_adopt, cfg_restore, or cfg_set would be the better pick.

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