cfg_impact
Assess how a configuration record change affects paths, risk, references, and code locations; compare stored refs or test a proposed document before writing.
Instructions
What a change touches: changed paths, risk, other records that mention this id, and file:line places code reads it (collection code_refs). Default compares =HEAD to =live (drift). Pass doc_json (a proposed full document) to see the impact of a change BEFORE writing it. use_llm adds provider narration (opt-in).
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>"
},
"name": "cfg_impact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | Left ref (default =HEAD). Refs: =HEAD, =live, @<seq>, or an oid prefix. | =HEAD |
| b | No | Right ref (default =live). Refs: =HEAD, =live, @<seq>, or an oid prefix. | =live |
| env | No | Environment name from .cfg.toml (e.g. dev, prod). Selects the target database. | dev |
| model | No | Override the provider model id. | |
| 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. agent_configs:refund_resolution. | |
| against | No | Scope narration to these related records (collection:id, repeatable or comma-separated) instead of the whole system. | |
| use_llm | No | Add LLM narration of the change (sends the redacted diff to the configured provider; needs its API key and [connections].share_with_ai). | |
| doc_json | No | A proposed full document you have not written yet. The report then compares =live to it (impact before the write). Omit to compare two stored refs. | |
| provider | No | Override the AI provider (claude, openai, gemini); defaults to [connections].ai_provider. | |
| 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 | |||