Skip to main content
Glama

cfg_rm

Delete a config record's live doc while saving a tombstone version for rollback. Blocks deletion when records or code still reference the ID unless force is set, and dry run previews impact.

Instructions

Delete a record's live doc and record a tombstone version carrying the last doc. Refuses (state=blocked_by_references, also on dry_run) when other records or code (code_refs) mention the id, unless force. cfg_restore with record + ref "@" brings it back.

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": {
      "record": "<record>",
      "message": "<message>"
    },
    "name": "cfg_rm"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoEnvironment name from .cfg.toml (e.g. dev, prod). Selects the target database.dev
forceNoDelete even if other records or code mention this id. Off by default.
authorNoAuthor attribution hint. Ignored/rejected in authenticated/enforced identity modes where a verified identity is required.
recordYesRecord address as collection:id, e.g. feature_flags:old_flag.
dry_runNoPreview: state would_delete, or blocked_by_references with what references it. Writes nothing.
messageYesWhy you are deleting it (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.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.5

TDQS

A4.2/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 substantial work: it discloses that the operation destroys a live doc but preserves a tombstone, that refusals surface as state=blocked_by_references even on dry_run, and that force overrides the guard. Gaps remain around permissions/identity requirements and whether a repeated delete is idempotent.

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: the destructive action first, the refusal conditions second, the recovery route last. No filler and the most decision-relevant information is front-loaded.

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?

Because an output schema exists, the description need not detail return values, and it covers the complex part — reference-blocking and tombstones — well. It stops short of covering authenticated/enforced identity modes, which the author parameter hints at but the description never mentions.

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 env, force, dry_run, record, message and config_file are already well documented. The description reinforces the force and dry_run semantics but adds little that the schema does not already say, so the baseline of 3 applies.

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?

The description gives a precise verb and resource — 'Delete a record's live doc and record a tombstone version carrying the last doc' — which is far more specific than the cryptic name 'cfg_rm'. It also names the complementary tool (cfg_restore) so the agent can tell this apart from restore-oriented siblings.

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?

It clearly states the blocking condition ('when other records or code (code_refs) mention the id') and the two escape hatches: set force, or use cfg_restore to undo. It does not explicitly say when to prefer inspecting references first (e.g., cfg_impact/cfg_show) before forcing, so the alternatives picture is not exhaustive.

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