Skip to main content
Glama

cfg_bulk_commit

Commit multiple full documents as one batch with a shared message, and use dry-run previews to check deltas before writing.

Instructions

Commit multiple full documents as one batch intent.

`items` may be either:
[{"record":"collection:id","doc":{...}}, ...]
{"collection:id": {...}, ...}, or a JSON string in either shape.

Set dry_run=true to preview every record's delta (would_commit / noop / changed_outside_cfgit)
without writing; recommended before a collection-scale replace.

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": {
      "items": "<items>",
      "message": "<message>"
    },
    "name": "cfg_bulk_commit"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoEnvironment name from .cfg.toml (e.g. dev, prod). Selects the target database.dev
itemsYesRecords to commit as one batch: a list of {record, doc}, a {collection:id: doc} map, or a JSON string of either. Each doc is a FULL document.
authorNoAuthor attribution hint. Ignored/rejected in authenticated/enforced identity modes where a verified identity is required.
branchNoCommit to this branch instead of main.
dry_runNoPreview the change and return the would-be result without writing anything.
messageYesWhy you are making this change (stored in history).
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, e.g. an ISO string (logged). Off by default; send dates as {"$date": ...} instead.
allow_remove_fieldsNoAllow docs to delete top-level fields live has. Off by default: any partial doc refuses the whole batch with state fields_removed.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.5

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden. It usefully discloses the dry-run preview outcome vocabulary (would_commit / noop / changed_outside_cfgit) and that each doc must be FULL, but is silent on atomicity (is the batch all-or-nothing?), failure modes, and identity/permission requirements — 'one batch intent' hints at transactionality without confirming it.

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?

Front-loaded with the core action, then the accepted item shapes, then the dry-run recommendation — a logical order with no filler. The inline code block embedded mid-sentence is slightly awkward formatting but costs no meaning.

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?

An output schema exists, so return values needn't be spelled out, and the description covers input shapes adequately. For an 11-parameter mutation tool with zero annotations, though, the absence of any statement about batch atomicity, partial-failure behavior, or identity-mode constraints leaves real gaps.

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 schema already documents all 11 parameters, and the description's items-shape enumeration largely restates the schema's own anyOf description. It does add one piece of semantics beyond the schema by naming the dry_run result states, but the other nine parameters get no additional explanation.

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 and resource plus the distinguishing scope: committing *multiple full documents* as a single batch. That scope separates it from single-record siblings like cfg_commit or cfg_set, though the description never names an alternative explicitly.

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 concrete usage cue: set dry_run=true to preview and this is 'recommended before a collection-scale replace.' However, it never states when to prefer this over cfg_commit/cfg_set, nor any precondition (identity mode, validator state) that would steer an agent away.

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