Skip to main content
Glama

cfg_export

Exports live configuration records as a portable, re-importable snapshot for one record or all collections, enabling later restoration.

Instructions

Read-only snapshot of live documents into a portable, re-importable artifact. Pass a record for one, or omit it to export every configured collection. Each item is stamped with its cfgit head seq/oid. Feed the result back to cfg_import(from_export=...) to restore.

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

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.
recordNoOptional collection:id to export one record; omit to export every configured collection.
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.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.5

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations at all, the description carries the safety burden and does state the operation is read-only and non-mutating, plus that output items are stamped with their cfgit head seq/oid. It does not cover permission/identity requirements (relevant given the author field) or failure modes such as an unconfigured environment.

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 tight sentences, with the read-only snapshot summary front-loaded before scope and round-trip details. The 'omit it to export every configured collection' clause duplicates the record parameter's schema description, a minor redundancy.

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-value detail is not required, and the description still usefully notes the seq/oid stamping. For a zero-required-parameter read tool it is nearly complete, missing only operational caveats like identity mode behavior and config override refusal.

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 echoes the record-parameter behavior already in the schema and adds only a small hint about the cfg_import(from_export=...) consumer; it does not illuminate env, author, or the config_file override constraint beyond the schema text.

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?

Names a specific verb and resource — a read-only snapshot of live documents into a portable, re-importable artifact — and immediately bounds scope (one record vs. every configured collection). It also names the counterpart tool (cfg_import) so the round-trip pair is unmistakable.

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?

Gives clear context: use it to capture state that can later be restored via cfg_import(from_export=...), and explains the single-record vs. full-export choice. It lacks an explicit when-not clause (e.g., versus cfg_log or cfg_diff for inspection-only needs), so it stops short of full routing guidance.

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