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
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment name from .cfg.toml (e.g. dev, prod). Selects the target database. | dev |
| force | No | Delete even if other records or code mention this id. Off by default. | |
| author | No | Author attribution hint. Ignored/rejected in authenticated/enforced identity modes where a verified identity is required. | |
| record | Yes | Record address as collection:id, e.g. feature_flags:old_flag. | |
| dry_run | No | Preview: state would_delete, or blocked_by_references with what references it. Writes nothing. | |
| message | Yes | Why you are deleting it (stored in history). | |
| config_file | No | Omit: 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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||